1 | currently eval is broken, due to parse errors, do not use it
|
2 | ```js
|
3 | var math = require('@mathematics-refined/math-redefined2');
|
4 | ```
|
5 | to eval, do the following:
|
6 | ```js
|
7 | math.Eval('YOUR EQUATION MUST BE IN HERE');
|
8 | ```
|
9 | to get pi:
|
10 | ```js
|
11 | math.Pi;
|
12 | ```
|
13 | to round:
|
14 | ```js
|
15 | math.Round('number')
|
16 | ```
|
17 | to get a random:
|
18 | ```js
|
19 | math.Random('maximum')
|
20 | ```
|
21 | NOTE:
|
22 | random is in developement
|
23 | to encrypt/ decrypt:
|
24 | ```js
|
25 | math.encrypt(first_string, to_change, to_replace);
|
26 | math.encrypt(first_string, to_change, to_replace);
|
27 | ```
|
28 | EXAMPLES:
|
29 | encrypt/decrypt:
|
30 | ```js
|
31 | math.encrypt('hi, how are you', 'o', '|').result//returns hi, h|w are y|u
|
32 | math.decrypt('hi, h|w are y|u', '|', 'o').result//returns hi, how are you
|
33 | math.encrypt('hi how are you', ['i', 'o', 'u'], ['.', '|', 'a']).result//returns h. h|w are y|a
|
34 | math.Random(10)//returns number less than ten or ten
|
35 | math.Round(12.95268)//returns 13
|
36 | math.Eval(' 2 + 2 = 4')//returns true
|
37 | ```
|