Im adding a specialised formula to a calculator, and it uses the Ln/ln function which is often on scientific calculators, how do i get this function to work in c++?

The formula is as follows:

'formula: pl * (10*diff + 10*creat +2*lines)

------------------------------------------

150 * (Ln(pl/1.5))'

Can anyone help?