Enabled math.pow ,math.min and math.max

This commit is contained in:
ketank-new 2017-01-06 10:01:36 +05:30 committed by GitHub
parent 1b16e7ce3c
commit c08fa1c119

View File

@ -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 *******")