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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -