12345678910111213141516171819 |
- local x = 8
- local y = 2
- local z = 16
- local sum = x + y
- local res = x - y
- local pow = x ^ y
- local powm = math.pow(x, y)
- local sqrt = z ^ (1 / 2)
- local sqrtm = math.sqrt(z)
- local sqrtmp = math.pow(z, 1 / 2)
- print(sum)
- print(res)
- print(pow)
- print(powm)
- print(sqrt)
- print(sqrtm)
- print(sqrtmp)
|