Mercurial Hosting > luan
annotate core/src/luan/modules/Math.luan @ 541:fda38db30e65
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 01 Jun 2015 18:13:06 -0600 |
parents | 92c3d22745b8 |
children | 90b93790c544 |
rev | line source |
---|---|
321
7f7708e8fdd4
remove import statement
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
320
diff
changeset
|
1 java() |
7f7708e8fdd4
remove import statement
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
320
diff
changeset
|
2 local MathLuan = require "java:luan.modules.MathLuan" |
297
899253043270
remove PackageLuan.load_lib()
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
3 local JavaMath = require "java:java.lang.Math" |
341
410e59ebad7d
add more Math functions
Franklin Schmidt <fschmidt@gmail.com>
parents:
321
diff
changeset
|
4 local Integer = require "java:java.lang.Integer" |
297
899253043270
remove PackageLuan.load_lib()
fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
parents:
diff
changeset
|
5 |
503 | 6 local M = {} |
7 | |
8 M.abs = MathLuan.abs | |
9 M.acos = MathLuan.acos | |
10 M.asin = MathLuan.asin | |
11 M.atan = MathLuan.atan | |
12 M.atan2 = MathLuan.atan2 | |
13 M.ceil = MathLuan.ceil | |
14 M.cos = MathLuan.cos | |
15 M.cosh = MathLuan.cosh | |
16 M.deg = MathLuan.deg | |
17 M.exp = MathLuan.exp | |
18 M.floor = MathLuan.floor | |
19 M.log = MathLuan.log | |
20 M.min = MathLuan.min | |
21 M.min_integer = Integer.MIN_VALUE | |
22 M.max = MathLuan.max | |
23 M.max_integer = Integer.MAX_VALUE | |
24 M.modf = MathLuan.modf | |
25 M.pi = JavaMath.PI | |
26 M.pow = MathLuan.pow | |
27 M.rad = MathLuan.rad | |
28 M.random = MathLuan.random | |
29 M.sin = MathLuan.sin | |
30 M.sinh = MathLuan.sinh | |
31 M.sqrt = MathLuan.sqrt | |
32 M.tan = MathLuan.tan | |
33 M.tanh = MathLuan.tanh | |
541 | 34 |
35 M.long_to_string = MathLuan.long_to_string | |
503 | 36 |
37 return M |