|
Revision 170, 0.6 kB
(checked in by JarrettBillingsley, 2 years ago)
|
--
|
| Line | |
|---|
| 1 |
module tests.maths; |
|---|
| 2 |
|
|---|
| 3 |
math.sin(4.5); |
|---|
| 4 |
math.sin(5); |
|---|
| 5 |
try math.sin('h'); catch(e){} |
|---|
| 6 |
math.abs(4.5); |
|---|
| 7 |
math.abs(5); |
|---|
| 8 |
try math.abs('h'); catch(e){} |
|---|
| 9 |
math.cos(5); |
|---|
| 10 |
math.tan(5); |
|---|
| 11 |
math.asin(5); |
|---|
| 12 |
math.acos(5); |
|---|
| 13 |
math.atan(5); |
|---|
| 14 |
math.atan2(4, 5); |
|---|
| 15 |
math.sqrt(5); |
|---|
| 16 |
math.cbrt(5); |
|---|
| 17 |
math.exp(5); |
|---|
| 18 |
math.ln(5); |
|---|
| 19 |
math.log2(5); |
|---|
| 20 |
math.log10(5); |
|---|
| 21 |
math.hypot(4, 5); |
|---|
| 22 |
math.lgamma(5); |
|---|
| 23 |
math.gamma(5); |
|---|
| 24 |
math.ceil(5); |
|---|
| 25 |
math.floor(5); |
|---|
| 26 |
math.round(5); |
|---|
| 27 |
math.trunc(5); |
|---|
| 28 |
math.isNan(5); |
|---|
| 29 |
math.isInf(5); |
|---|
| 30 |
math.sign(5); |
|---|
| 31 |
math.sign(-5); |
|---|
| 32 |
math.sign(0); |
|---|
| 33 |
math.sign(5.0); |
|---|
| 34 |
math.sign(-5.0); |
|---|
| 35 |
math.sign(0.0); |
|---|
| 36 |
math.pow(5, 4.5); |
|---|
| 37 |
math.pow(5, 5); |
|---|
| 38 |
math.rand(); |
|---|
| 39 |
math.rand(10); |
|---|
| 40 |
math.rand(10, 20); |
|---|