math - Advanced mathematical expressions in JavaScript - How to -
i calculating javascript. how 1 write (rather complex) mathematical expressions in javascript?
let's take example, use x variable:
-2(10^ -10)x^6
is possible write that? or should write this:
-2 * math.pow(10, -10) * math.pow(x, 6) ?
thanks!
the second way correct. (but require capital m eg math)
in javascript ^ xor , * required multiplication.
Comments
Post a Comment