- #1

- 421

- 0

The trigonometric equation I am trying to right in Fortran is the Law of cosines

COS(c)=d^2+a^2-b^2/(2*a*d)

However, I want Fortran to calculate the inverse of the above equation:

How would I write the following equation in Fortran?

c=COS^1-(d^2+a^2-b^2/(2*a*d))