|
1 |
| - |
2 |
| - |
3 |
| -# Introduction |
4 |
| -An extremely efficient, flexible and amazing evaluator with a smart parser for Math expression using Javascript.It has all the basic functions supported with extensive support for new functions, variable etc. |
5 |
| -Plus it supports Sigma and Pi notations too. Also, any human readable math expression like `sincostan90` is also readable by this evaluator. |
6 |
| - |
7 |
| -##[Demonstration](http://jsbin.com/qokime/edit?html,output) |
8 |
| - |
9 |
| -#Topics |
10 |
| - |
11 |
| -- [Features](#features) |
12 |
| - - [Supported symbols](#supported-symbols) |
13 |
| - - [Amazing support for Sigma and Pi](#amazing-support-for-sigma-and-pi) |
14 |
| - - [Parenthesis less expressions](#parenthesis-less-expression) |
15 |
| -- [Installation](#installation) |
16 |
| - - [Node JS](#node-js) |
17 |
| - - [Browser](#browser) |
18 |
| -- [Test](#test) |
19 |
| -- [Documentation](http://ankit31894.github.io/math-expression-evaluator/) |
20 |
| - |
21 |
| - |
22 |
| -# Installation |
23 |
| -## Node JS |
24 |
| - **Using npm** |
25 |
| - |
26 |
| - npm install math-expression-evaluator |
27 |
| - |
28 |
| -## Browser |
29 |
| - **Using bower** |
30 |
| - |
31 |
| - bower install math-expression-evaluator |
32 |
| -# Features |
33 |
| -##Supported symbols |
34 |
| - |
35 |
| - **+** Addition Operator eg. 2+3 results 5 |
36 |
| - **-** Subtraction Operator eg. 2-3 results -1 |
37 |
| - **/** Division operator eg 3/2 results 1.5 |
38 |
| - **\*** Multiplication Operator eg. 2\*3 results 6 |
39 |
| - **Mod** Modulus Operator eg. 3 Mod 2 results 1 |
40 |
| - **(** Opening Parenthesis |
41 |
| - **)** Closing Parenthesis |
42 |
| - **Sigma** Summation eg. Sigma(1,100,n) results 5050 |
43 |
| - **Pi** Product eg. Pi(1,10,n) results 3628800 |
44 |
| - **n** Variable for Summation or Product |
45 |
| - **pi** Math constant pi returns 3.14 |
46 |
| - **e** Math constant e returns 2.71 |
47 |
| - **C** Combination operator eg. 4C2 returns 6 |
48 |
| - **P** Permutation operator eg. 4P2 returns 12 |
49 |
| - **!** factorial operator eg. 4! returns 24 |
50 |
| - **log** logarithmic function with base 10 eg. log 1000 returns 3 |
51 |
| - **ln** natural log function with base e eg. ln 2 returns .3010 |
52 |
| - **pow** power function with two operator pow(2,3) returns 8 |
53 |
| - **^** power operator eg. 2^3 returns 8 |
54 |
| - **root** underroot function root 4 returns 2 |
55 |
| -**Trigonometric function** |
56 |
| - **sin** |
57 |
| - **cos** |
58 |
| - **tan** |
59 |
| - **asin** |
60 |
| - **acos** |
61 |
| - **atan** |
62 |
| - **sinh** |
63 |
| - **cosh** |
64 |
| - **tanh** |
65 |
| - **asinh** |
66 |
| - **acosh** |
67 |
| - **atanh** |
68 |
| - |
69 |
| -##Amazing support for Sigma and Pi |
70 |
| -This is a fantastic feature of this calculator that it is capable of evaluating expressions containing **Sigma and Pi**. |
71 |
| -Passing `Sigma(1,100,n)` will evaluate to 5050 as n is summationed from 1 to 100. |
72 |
| -and Pi(1,15,n) will evaluate to 1307674368000 as n is multiplied from 1 to 15 which is equal to 15! |
73 |
| - |
74 |
| -##Parenthesis less expression |
75 |
| -If a expression is readable by human then it is readable by this evaluator. There is no need to wrap every function inside parenthesis. |
76 |
| -For eg. sin90 will work totally fine instead of sin(90) |
77 |
| - |
78 |
| -# Test |
| 1 | + |
| 2 | + |
| 3 | +# Introduction |
| 4 | +An extremely efficient, flexible and amazing evaluator with a smart parser for Math expression using Javascript.It has all the basic functions supported with extensive support for new functions, variable etc. |
| 5 | +Plus it supports Sigma and Pi notations too. Also, any human readable math expression like `sincostan90` is also readable by this evaluator. |
| 6 | + |
| 7 | +##[Demonstration](http://jsbin.com/qokime/edit?html,output) |
| 8 | + |
| 9 | +#Topics |
| 10 | + |
| 11 | +- [Features](#features) |
| 12 | + - [Supported symbols](#supported-symbols) |
| 13 | + - [Amazing support for Sigma and Pi](#amazing-support-for-sigma-and-pi) |
| 14 | + - [Parenthesis less expressions](#parenthesis-less-expression) |
| 15 | +- [Installation](#installation) |
| 16 | + - [Node JS](#node-js) |
| 17 | + - [Browser](#browser) |
| 18 | +- [Test](#test) |
| 19 | +- [Documentation](http://ankit31894.github.io/math-expression-evaluator/) |
| 20 | + |
| 21 | + |
| 22 | +# Installation |
| 23 | +## Node JS |
| 24 | + **Using npm** |
| 25 | + |
| 26 | + npm install math-expression-evaluator |
| 27 | + |
| 28 | +## Browser |
| 29 | + **Using bower** |
| 30 | + |
| 31 | + bower install math-expression-evaluator |
| 32 | +# Features |
| 33 | +##Supported symbols |
| 34 | + |
| 35 | + **+** Addition Operator eg. 2+3 results 5 |
| 36 | + **-** Subtraction Operator eg. 2-3 results -1 |
| 37 | + **/** Division operator eg 3/2 results 1.5 |
| 38 | + **\*** Multiplication Operator eg. 2\*3 results 6 |
| 39 | + **Mod** Modulus Operator eg. 3 Mod 2 results 1 |
| 40 | + **(** Opening Parenthesis |
| 41 | + **)** Closing Parenthesis |
| 42 | + **Sigma** Summation eg. Sigma(1,100,n) results 5050 |
| 43 | + **Pi** Product eg. Pi(1,10,n) results 3628800 |
| 44 | + **n** Variable for Summation or Product |
| 45 | + **pi** Math constant pi returns 3.14 |
| 46 | + **e** Math constant e returns 2.71 |
| 47 | + **C** Combination operator eg. 4C2 returns 6 |
| 48 | + **P** Permutation operator eg. 4P2 returns 12 |
| 49 | + **!** factorial operator eg. 4! returns 24 |
| 50 | + **log** logarithmic function with base 10 eg. log 1000 returns 3 |
| 51 | + **ln** natural log function with base e eg. ln 2 returns .3010 |
| 52 | + **pow** power function with two operator pow(2,3) returns 8 |
| 53 | + **^** power operator eg. 2^3 returns 8 |
| 54 | + **root** underroot function root 4 returns 2 |
| 55 | +**Trigonometric function** |
| 56 | + **sin** |
| 57 | + **cos** |
| 58 | + **tan** |
| 59 | + **asin** |
| 60 | + **acos** |
| 61 | + **atan** |
| 62 | + **sinh** |
| 63 | + **cosh** |
| 64 | + **tanh** |
| 65 | + **asinh** |
| 66 | + **acosh** |
| 67 | + **atanh** |
| 68 | + |
| 69 | +##Amazing support for Sigma and Pi |
| 70 | +This is a fantastic feature of this calculator that it is capable of evaluating expressions containing **Sigma and Pi**. |
| 71 | +Passing `Sigma(1,100,n)` will evaluate to 5050 as n is summationed from 1 to 100. |
| 72 | +and Pi(1,15,n) will evaluate to 1307674368000 as n is multiplied from 1 to 15 which is equal to 15! |
| 73 | + |
| 74 | +##Parenthesis less expression |
| 75 | +If a expression is readable by human then it is readable by this evaluator. There is no need to wrap every function inside parenthesis. |
| 76 | +For eg. sin90 will work totally fine instead of sin(90) |
| 77 | + |
| 78 | +# Test |
79 | 79 | npm test
|
0 commit comments