mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
Enabled math.pow ,math.min and math.max
This commit is contained in:
parent
1b16e7ce3c
commit
c08fa1c119
@ -164,15 +164,15 @@ io.write("Math.deg",math.deg(math.pi),"\n")
|
|||||||
io.write("Floor of 10.5055 is ", math.floor(10.5055),"\n")
|
io.write("Floor of 10.5055 is ", math.floor(10.5055),"\n")
|
||||||
io.write("Ceil of 10.5055 is ", math.ceil(10.5055),"\n")
|
io.write("Ceil of 10.5055 is ", math.ceil(10.5055),"\n")
|
||||||
io.write("Square root of 16 is ",math.sqrt(16),"\n")
|
io.write("Square root of 16 is ",math.sqrt(16),"\n")
|
||||||
--io.write("10 power 2 is ",math.pow(10,2),"\n")
|
io.write("10 power 2 is ",math.pow(10,2),"\n")
|
||||||
--io.write("100 power 0.5 is ",math.pow(100,0.5),"\n")
|
io.write("100 power 0.5 is ",math.pow(100,0.5),"\n")
|
||||||
io.write("Absolute value of -10 is ",math.abs(-10),"\n")
|
io.write("Absolute value of -10 is ",math.abs(-10),"\n")
|
||||||
|
|
||||||
math.randomseed(os.time())
|
math.randomseed(os.time())
|
||||||
io.write("Random number between 1 and 100 is ",math.random(),"\n")
|
io.write("Random number between 1 and 100 is ",math.random(),"\n")
|
||||||
io.write("Random number between 1 and 100 is ",math.random(1,100),"\n")
|
io.write("Random number between 1 and 100 is ",math.random(1,100),"\n")
|
||||||
--io.write("Maximum in the input array is ",math.max(1,100,101,99,999),"\n")
|
io.write("Maximum in the input array is ",math.max(1,100,101,99,999),"\n")
|
||||||
--io.write("Minimum in the input array is ",math.min(1,100,101,99,999),"\n")
|
io.write("Minimum in the input array is ",math.min(1,100,101,99,999),"\n")
|
||||||
print("********************************************")
|
print("********************************************")
|
||||||
|
|
||||||
print("****************OS Functions *******")
|
print("****************OS Functions *******")
|
||||||
|
Loading…
Reference in New Issue
Block a user