New math.cos and math.sqrt functions from Lua standard library, with new

math library test case. Also, character encoding of LuaCompat was changed
from something that Eclipse was not handling well to UTF-8.
This commit is contained in:
Ian Farmer
2007-09-23 03:54:06 +00:00
parent 5536159916
commit f801e648bb
2 changed files with 24 additions and 10 deletions

4
src/test/res/mathlib.lua Normal file
View File

@@ -0,0 +1,4 @@
print( math.sin( 0.0 ) )
print( math.cos( math.pi ) )
print( math.sqrt( 9.0 ) )
print( math.modf( 5.25 ) )