How would I write this formula in code?
A = 1.13(8.7 - 0.1345 x 69)
the part in the parentheses is actually an exponent to 1.13
Thanks,
John
How would I write this formula in code?
A = 1.13(8.7 - 0.1345 x 69)
the part in the parentheses is actually an exponent to 1.13
Thanks,
John
If you can't figure that out, none of us can help you. The '*' symbol means multiplication, the '-' symbol is subtraction, and there is no symbol for exponentiation. You have to use a function.
double A = pow(1.13,(8.7 - 0.1345 * 69));
I knew how to ready the *and - I just didnt know how to make the exponent part.
I need mathc function with that also correct?
Thanks
Yes, you need cmath.