Mathjs comes with a function mathevaluate to evaluate expressions. Output will be 110 EQ-1. One of the most common trigonometric math functions is sine.
First try entering some simple examples of your own such as10 7 9 8 60 3 You can also try declaring and initializing some numbers inside variables and try using those in the sums the.
The tokenizer I built in that article was the first component of my quest to render and solve math expressions using Javascript or any other language. Evaluates to true or false. Try it Yourself. You can also use - for subtraction for multiplication for division and to take the remainder.