My favorites | Sign in
Project Home Downloads
Project Information
Members

Equation Parser

Summary:

A simple equation parser that computes string-based equation like in MS Excel.

Sample Usage:

 

<script type="text/javascript">

var input = '1+2'; var eq = owenge.equation.parse(input); document.writeln(eq.answer); document.writeln(eq.error);

// Answer is 3

input = '(((-1+2)*5+-10)/3*2)+100/2/3/4/-5+(90*5)'; eq = owenge.equation.parse(input);

// Answer is 445.8333333 </script>

Support:

Math functions are yet supported as of the moment.

Powered by Google Project Hosting