Here is an example of what im asking.
int newBal = base * ( 1 + rate )[exponent] /* this is my question
What is the correct way of putting in an exponent? Simple question with a simple answer i hope. thanks
When defining an integer as a formula, how do i note an exponent like 10 cubed. Im writing a c++ program.?
I forget, but doesn't c++ have the built in pow
in java its Math.pow(10,2)
Found it
#include%26lt;math.h%26gt;.
Here we note only two:
pow( base, exponent) used to write powers, for example in order to write x5 we write POW(x,5).
exp( exponent ) used to write exponential, for example in order to write e5x we write exp(5*x)
tarot cards
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment