added math constants (they must be in PascalCase) (change radians)

pull/650/head
RustemB 2019-06-25 11:37:23 +05:00 committed by Alex Medvednikov
parent 0ec6578321
commit 64e0366424
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
/home/rustemb/complex.v/complex.v

View File

@ -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 {