Its just a formula converted to a lisp calc.
Two common functions are RTD and DTR
;The dtr function converts degrees to radians
;The rtd function converts radians to degrees
(defun dtr (a)
(* pi (/ a 180.0))
)
;
(defun rtd (a)
(/ (* a 180.0) pi)
)
These are always handy to have and most experienced coders will have these in an autoload lisp.
So your request becomes (setq def (rtd (atan (/ (abs (- in out)) 100.))))
So input, in and out and get a result. Or (setq def (rtd (atan (/ (abs (- (getreal "\nEnter in value ")(getreal "\nEnter out value " ))) 100.))))