Skip to content

JS code that will parse and calculate a simple mathematical formula using a recursive function "parse()" that builds a tree of atomic operations. I used a recursive function "calculate()" that will navigate through the tree to calculate each node. The code does not use the JS function "eval()".

Notifications You must be signed in to change notification settings

Emnaghz/formula_calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

About

JS code that will parse and calculate a simple mathematical formula using a recursive function "parse()" that builds a tree of atomic operations. I used a recursive function "calculate()" that will navigate through the tree to calculate each node. The code does not use the JS function "eval()".

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published