Ads Here

Thursday, October 12, 2017

Project 1 : Crafting a health Potion - Part 2

Project 1 : Crafting a health Potion - Part 2

Project 1 : Crafting a health Potion - Part 2

>>> math.floor(1.5)
1
>>> math.ceil(2.1)
3
>>> math.pi
3.141592653589793
>>> math.e
2.718281828459045
>>> math.sin(math.pi / 2)
1.0
>>> math.floor(math.sin(math.pi))
0
>>> math.asin(0)
0.0
>>> math.pow(2,3)
8.0
>>> math.pow(9,2)
81.0
>>> math.exp(2)
7.38905609893065
>>> math.log(math.e)
1.0
>>> math.log2
<built-in function log2>
>>> math.log10(1000)
3.0
>>> math.log2(8)
3.0
>>>

No comments:

Post a Comment