added math constants (they must be in PascalCase) (change radians)
parent
0ec6578321
commit
64e0366424
|
@ -0,0 +1 @@
|
|||
/home/rustemb/complex.v/complex.v
|
|
@ -94,11 +94,11 @@ fn pow(a, b f64) f64 {
|
|||
}
|
||||
|
||||
fn radians(degrees f64) f64 {
|
||||
return degrees * (PI / 180.0)
|
||||
return degrees * (Pi / 180.0)
|
||||
}
|
||||
|
||||
fn degrees(radians f64) f64 {
|
||||
return radians * (180.0 / PI)
|
||||
return radians * (180.0 / Pi)
|
||||
}
|
||||
|
||||
fn round(f f64) f64 {
|
||||
|
|
Loading…
Reference in New Issue