数学関数

以前やっていないもの

#!/usr/bin/env lua

print(math.exp(1))
print(math.pow(2, 3))
print(__pow(2, 3))
print(math.rad(180))

print(math.frexp(1.0))
print(math.frexp(2.0))
print(math.ldexp(1.0, 0))
print(math.ldexp(1.0, 2))

print(math.random())
print(math.random())
print(math.random(10))
print(math.random(10))
print(math.random(9,10))

math.randomseed(2)

で、

2.718281828459
8
8
3.1415926535898
0.5	1
0.5	2
1
4
0.84018771715471
0.39438292681909
8
8
10