From 64e0366424d5f0dfb6ac82ad6e44733c168b02eb Mon Sep 17 00:00:00 2001 From: RustemB Date: Tue, 25 Jun 2019 11:37:23 +0500 Subject: [PATCH] added math constants (they must be in PascalCase) (change radians) --- complex/complex.v | 1 + math/math.v | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 120000 complex/complex.v diff --git a/complex/complex.v b/complex/complex.v new file mode 120000 index 0000000000..74a0334ec5 --- /dev/null +++ b/complex/complex.v @@ -0,0 +1 @@ +/home/rustemb/complex.v/complex.v \ No newline at end of file diff --git a/math/math.v b/math/math.v index 315b39ddb0..81f246f725 100644 --- a/math/math.v +++ b/math/math.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 {