How to use Math functions

From TeacherWiki

Jump to: navigation, search

Our algebra parser essentially just uses Javascript to evaluate an expression, so you can use Javascript math functions in your answer. I think square root is Math.sqrt(), there is also trig functions, etc. Obviously not ideal but it might do until we finish the new version of our system.

Javascript Math object reference: Click here for the references

So for example, if the answer was 2*cos(a), you would write 2*Math.cos(a). I think this should work.

Personal tools
login or sign up