Added Num.pi and some tests

This commit is contained in:
Thorbjørn Lindeijer
2015-03-19 21:12:50 +01:00
parent 1099c75c77
commit 07951bbeae
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