c++ equation

hi guys

i'd like some help with transforming this equation to a c++ code
please help me

x=1/ab ln{ [(f^-b) +c/a]/(1+c/a)} where i want the value of x
x = 1 / (a*b) * log ( ( pow(f,-b) + c/a ) / ( 1 + c/a ) ); log and pow are from <cmath>
Last edited on
thanks man but i dont think ln = log right??
ln(x)==log(x) as far as the cmath library is concerned. The decimal logarithm in cmath is denoted as log10(x)
Last edited on
Topic archived. No new replies allowed.