Ferguson - 1 year ago 135

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.

Recommended for you: Get network issues from **WhatsUp Gold**. **Not end users.**

Recommended from our users: **Dynamic Network Monitoring from WhatsUp Gold from IPSwitch**. ** Free Download**