Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Simple FORTRAN question

  1. Jun 11, 2008 #1
    I want Fortran to regconize trigonometric functions.

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

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

    How would I write the following equation in Fortran?
  2. jcsd
  3. Jun 11, 2008 #2


    User Avatar

    Staff: Mentor

    You are looking for arccos - you will have to check documentation for the correct name of the function, as it differs between dialects.
  4. Jun 11, 2008 #3


    User Avatar
    Homework Helper

    Hi Benzoate,

    The inverse cosine function is given by:

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook