Files
wren/test/core/number/sin.wren
T

7 lines
273 B
Plaintext
Raw Normal View History

2015-09-15 07:46:09 -07:00
System.print(0.sin) // expect: 0
System.print((Num.pi / 2).sin) // expect: 1
2015-03-19 21:12:50 +01:00
// these should of course be 0, but it's not that precise
2016-10-09 09:18:27 +01:00
System.print(Num.pi.sin.abs < 1.0e-15) // expect: true
System.print((2 * Num.pi).sin.abs < 1.0e-15) // expect: true