feat: add Num.pi constant and trigonometric function tests for acos, asin, atan, cos, sin, tan

This commit is contained in:
Thorbjørn Lindeijer
2015-03-19 20:12:50 +00:00
parent c717b8d3fd
commit ed559673ea
9 changed files with 36 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
IO.print(0.sin) // expect: 0
IO.print((Num.pi / 2).sin) // expect: 1
// these should of course be 0, but it's not that precise
IO.print(Num.pi.sin) // expect: 1.2246467991474e-16
IO.print((2 * Num.pi).sin) // expect: -2.4492935982947e-16