Is there an ArcTan function?

Discussion in 'Questions (Windows Mobile)' started by amantle, Feb 17, 2009.

  1. amantle

    amantle New Member

    I need to convert percent slope to degrees and would prefer not to use a table...I would like to use a formula, but I think I need to use a ArcTan to convert percent slope to degrees:
    Slope Degrees = ArcTan (Slope)

    I do not see an ArcTan function in Basic4PPC. Am I missing this?
    Does anyone know another way to arrive at the answer?
    Thanks so much!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    It is named ATan.
    Code:
    degrees = 180 / cPI * ATan(slope)
     
  3. jmantle

    jmantle New Member Licensed User

    Thanks

    Appreciate that!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice