I'm trying to convert following function to a format AM would understand. I can't seem to get exponent operator right.
How do I use pow() function correctly?
"-(x-240)^2/460+255"
Exponent operator
Moderator: Martin
Re: Exponent operator
pow(base, exponent) should work:
val = -pow(x-240, 2)/460+255;
Regards,
Martin
val = -pow(x-240, 2)/460+255;
Regards,
Martin
Re: Exponent operator
Thanks. The problem seemed to be a wrong order of placement