Skip to content

Parses Mathematical Expressions into Tokens then evaluates them

Notifications You must be signed in to change notification settings

MLGPenguin/Math-Evaluator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math-Evaluator

Evaluates Mathematical expressions from String form.

Supports Addition (+), Subtraction (-), Multiplication (*), Division (/) and Exponents (^). Also supports concise (co-efficient style) multiplication ( n(y) == n * y ).

Also supports a range of common prefix functions like sin(expression) and so on.

Using it is simple, just call Evaluator.eval(String)

Likewise, you can check the validity of a syntax using Evaluator.isValidSyntax(String)

About

Parses Mathematical Expressions into Tokens then evaluates them

Resources

Stars

Watchers

Forks

Packages

No packages published