UNPKG

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