Mercurial Hosting > luan
comparison core/src/luan/modules/Math.luan @ 566:90b93790c544
Number and Math documentation and minor changes
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 05 Jul 2015 18:26:04 -0600 |
parents | fda38db30e65 |
children |
comparison
equal
deleted
inserted
replaced
565:22bfd8a2eaee | 566:90b93790c544 |
---|---|
1 java() | 1 java() |
2 local MathLuan = require "java:luan.modules.MathLuan" | 2 local MathLuan = require "java:luan.modules.MathLuan" |
3 local JavaMath = require "java:java.lang.Math" | 3 local JavaMath = require "java:java.lang.Math" |
4 local Integer = require "java:java.lang.Integer" | 4 local Integer = require "java:java.lang.Integer" |
5 local Double = require "java:java.lang.Double" | |
6 | |
5 | 7 |
6 local M = {} | 8 local M = {} |
7 | 9 |
8 M.abs = MathLuan.abs | 10 M.abs = MathLuan.abs |
9 M.acos = MathLuan.acos | 11 M.acos = MathLuan.acos |
14 M.cos = MathLuan.cos | 16 M.cos = MathLuan.cos |
15 M.cosh = MathLuan.cosh | 17 M.cosh = MathLuan.cosh |
16 M.deg = MathLuan.deg | 18 M.deg = MathLuan.deg |
17 M.exp = MathLuan.exp | 19 M.exp = MathLuan.exp |
18 M.floor = MathLuan.floor | 20 M.floor = MathLuan.floor |
21 M.fmod = MathLuan.fmod | |
22 M.huge = Double.POSITIVE_INFINITY | |
19 M.log = MathLuan.log | 23 M.log = MathLuan.log |
24 M.max = MathLuan.max | |
25 M.max_integer = Integer.MAX_VALUE | |
20 M.min = MathLuan.min | 26 M.min = MathLuan.min |
21 M.min_integer = Integer.MIN_VALUE | 27 M.min_integer = Integer.MIN_VALUE |
22 M.max = MathLuan.max | |
23 M.max_integer = Integer.MAX_VALUE | |
24 M.modf = MathLuan.modf | 28 M.modf = MathLuan.modf |
25 M.pi = JavaMath.PI | 29 M.pi = JavaMath.PI |
26 M.pow = MathLuan.pow | |
27 M.rad = MathLuan.rad | 30 M.rad = MathLuan.rad |
28 M.random = MathLuan.random | 31 M.random = MathLuan.random |
29 M.sin = MathLuan.sin | 32 M.sin = MathLuan.sin |
30 M.sinh = MathLuan.sinh | |
31 M.sqrt = MathLuan.sqrt | 33 M.sqrt = MathLuan.sqrt |
32 M.tan = MathLuan.tan | 34 M.tan = MathLuan.tan |
33 M.tanh = MathLuan.tanh | |
34 | |
35 M.long_to_string = MathLuan.long_to_string | |
36 | 35 |
37 return M | 36 return M |