I m trying to calculate this equation for a small iphone app:
x = 120 x num^-1.123 x tr^-0.206 x [te] x [fe]
x equals 120 times num raised to the power of -1.123 times tr raised to the power of -0.206 times te times fe.
Where num, tr, te and fe are known numbers entered by the user.
How do I do that?
I m stuck in the negative decimal power of num and tr.
any help appreciated…
Foundation will include math functions, so all you have to do is use one of the
pow()functions to work with. Usepow()for working with doubles,powf()for floats, or
powl()for long doubles. Here’s an example: