|
Maths Expression PowIs there a way of writing pow in the maths expression patch? I thought it was written pow(x,2) in javascript but this doesnt work for me this is the math I am trying to convert - http://local.wasp.uwa.edu.au/~pbourke/geometry/diamond/ cos(t) * sqrt(pow2(cos(t))) Any ideas where I am going wrong |
Are you using Math Expression, or Javascript?
In JS, you need to use the Math object (Math.cos(), Math.sin(), Math.pow(), etc).
In Math Expression, you use the ^ operator (3^3 = 27)
math expresssion patch
ok I see now, thanks for clearing that up
Math Expression wouldn't something like
or
work?
I'm thinking
cos(t)^2
wouldn't be the same ascos(t^2)
, but I may have let my trig identities rot over the past decade... ;)Succinct :-).