Equation Converter 0.2.3

Converts equations from standard mathematical notation, to javascript notation.

Capabilities

* Asterisks indicates non-standard formations in mathematics such as (5+2)8 instead of 8(5+2). These are (by choice) interpreted as multiplication.

Version history

Version 0.2.4: Replaced used of const with var since only Mozilla recognizes it. Replaced eval with better code.

Version 0.2.3: Added support for negative sign following caret. For example, x^-2 = pow(x,-2). Note that negative sign preceding caret is not supported (by choice), i.e. -x^2 = -(x^2) instead of (-x)^2. This is in keeping with behavior of most hand-held graphing calculators.

Version 0.2.2: Bug fix regarding mishandling of constants and numbers preceding caret.

Version 0.2.1: Bug fixes: added implied multiplication for constant followed by number, stopped reserved constants LOG2E and LOG10E from becoming LOG2*E and LOG10*E, fixed mishandling of constants and functions preceding caret.

Version 0.2: Addded support for use of caret sign ("^") as power operator.

Version 0.1: Added support for implied multiplication and removes white space.

Reference