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.cos) // expect: 1
IO.print(Num.pi.cos) // expect: -1
IO.print((2 * Num.pi).cos) // expect: 1
// this should of course be 0, but it's not that precise
IO.print((Num.pi / 2).cos) // expect: 6.1232339957368e-17