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:

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Simple FORTRAN question
  1. Question - Fortran (Replies: 2)

  2. FORTRAN Question (Replies: 4)

  3. Fortran question (Replies: 2)

  4. Fortran Question (Replies: 32)