File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub fn aprox_sin(a f64) f64 {
16
16
return a0 + a * (a1 + a * (a2 + a * (a3 + a * (a4 + a * (a5 + a * (a6 + a * a7 ))))))
17
17
}
18
18
19
- // aprox_cos returns an approximation of sin (a) made using lolremez
19
+ // aprox_cos returns an approximation of cos (a) made using lolremez
20
20
pub fn aprox_cos (a f64 ) f64 {
21
21
a0 := 9.9995999154986614e-1
22
22
a1 := 1.2548995793001028e-3
@@ -36,7 +36,7 @@ pub fn copysign(x f64, y f64) f64 {
36
36
return f64_from_bits ((f64_bits (x) & ~ sign_mask) | (f64_bits (y) & sign_mask))
37
37
}
38
38
39
- // degrees converts from radians to degrees.
39
+ // degrees converts angle from radians to degrees.
40
40
[inline ]
41
41
pub fn degrees (radians f64 ) f64 {
42
42
return radians * (180.0 / pi)
@@ -153,7 +153,7 @@ pub fn signi(n f64) int {
153
153
return int (copysign (1.0 , n))
154
154
}
155
155
156
- // radians converts from degrees to radians.
156
+ // radians converts angle from degrees to radians.
157
157
[inline ]
158
158
pub fn radians (degrees f64 ) f64 {
159
159
return degrees * (pi / 180.0 )
You can’t perform that action at this time.
0 commit comments