inverse to a sin...

Discussion in 'AutoCAD' started by Devin, Jul 18, 2003.

  1. Devin

    Devin Guest

    is there an inverse to a sin? What I mean by that is... is there a function
    that goes the other way?

    ie:

    (* (sin angle_from_xy_plane) distance) = 3dpoint projected up distance

    How do you go the other way and project a point from the xy plane to 3d
    space?

    Thanks,

    Devin
     
    Devin, Jul 18, 2003
    #1
  2. Devin

    Phil Clark Guest

    (defun ACOS (X) ;Inverse cosine
    (- (/ pi 2.0) (atan (/ X (sqrt (- 1.0 (* X X))))))
    )
    (defun ASIN (X) ; Inverse sine
    (atan (/ X (sqrt (- 1.0 (* X X)))))
    )
    (defun ACSC (X) ; Inverse cosecant
    (+ (atan (/ 1.0 (sqrt (- (* X X) 1.0)))) (* (/ pi 2.0)
    (- (if (< X 0) (- 1.0) (+ 1.0)) 1.0)))
    )
    (defun ASEC (X) ; Inverse secant
    (+ (atan (sqrt (- (* X X) 1.0))) (* (/ pi 2.0)
    (- (if (< X 0) (- 1.0) (+ 1.0)) 1.0)))
    )
    (defun ACOT (X) ; Inverse cotangent
    (- (/ pi 2.0) (atan X))
    )
    (defun SEC (X) ; Secant
    (/ 1.0 (cos X))
    )
    (defun CSC (X) ; Cosecant
    (/ 1.0 (sin X))
    )
    (defun TAN (X) ; Tangent
    (/ (sin X) (cos X))
    )
    (defun COT (X) ; Cotangent
    (/ (cos X) (sin X))
    )
     
    Phil Clark, Jul 18, 2003
    #2
  3. Devin

    Devin Guest

    Thanks Phil

    Devin
     
    Devin, Jul 18, 2003
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.