Ferguson - 8 months ago 79

C Question

I need to rewrite this expression into code (C or Java):

`g`

`h`

`i`

`j`

`f`

`f0`

`val = 1/{g+h[ln(f0/f)]+i[ln^2(f0/f)]+j[ln^3(f0/f)]-273.15;`

The problem I have is converting

`ln^2(f0/f)`

Is this

`(pow(ln(fo/f),2))`

`ln^3(f0/f)`

`pow(ln(f0/f),3)`

Thank you.