I am about to do some calculating with JavaScript. How do one write (rather complex) mathematical expressions in JavaScript?
Let's take this as an example, where I use x as a variable:
-2(10^ -10)x^6
Is it possible to write it just like that? Or should I write something like this:
-2 * math.pow(10, -10) * math.pow(x, 6)
?
Thanks!