mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Add arcus functions
This commit is contained in:
parent
601cc4a012
commit
7e997c2e44
16
math/math.v
16
math/math.v
@ -15,6 +15,22 @@ fn abs(a f64) f64 {
|
|||||||
return a
|
return a
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn acos(a f64) f64 {
|
||||||
|
return C.acos(a)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn asin(a f64) f64 {
|
||||||
|
return C.asin(a)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn atan(a f64) f64 {
|
||||||
|
return C.atan(a)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn atan2(a, b f64) f64 {
|
||||||
|
return C.atan2(a, b)
|
||||||
|
}
|
||||||
|
|
||||||
fn ceil(a f64) f64 {
|
fn ceil(a f64) f64 {
|
||||||
return C.ceil(a)
|
return C.ceil(a)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user