hexagon logo

What is the function for inverse sin?

Need to do some trig for a program I am writing cant seem to find the function
Parents
  • ASIN( x ), result in radians, so use RAD2DEG( ASIN( x )) to get degrees.

    If you need the other inverse trigs, they are also there - ACOS( x ) and ATAN( x )

    Note - be careful with ATAN(x), it will only give results in the +-90 range, as information is lost when reducing X/Y to one single number. What you really need is the ATAN2(y, x) function, which unfortunately doesn't exist in PC-DMIS (but it does in my own mathlib.prg :-)

    Edit: Obviously, I'm too slow...
Reply
  • ASIN( x ), result in radians, so use RAD2DEG( ASIN( x )) to get degrees.

    If you need the other inverse trigs, they are also there - ACOS( x ) and ATAN( x )

    Note - be careful with ATAN(x), it will only give results in the +-90 range, as information is lost when reducing X/Y to one single number. What you really need is the ATAN2(y, x) function, which unfortunately doesn't exist in PC-DMIS (but it does in my own mathlib.prg :-)

    Edit: Obviously, I'm too slow...
Children
No Data