@interlisp @amoroso
@kentpitman
Why do the ATAN and ARCTAN functions in #Medley #Interlisp return the result angle in degrees rather than radian?
I know the answer is (the fixnum 42), but why?
Questions over questions?
@interlisp @amoroso
@kentpitman
Why do the ATAN and ARCTAN functions in #Medley #Interlisp return the result angle in degrees rather than radian?
I know the answer is (the fixnum 42), but why?
Questions over questions?
@interlisp @amoroso @kentpitman
Found it:
Must say:
(ARCTAN 1 T) ;; ==> PI/4
(ARCTAN 1) and (ARCTAN 1 NIL) give 45 (degrees).
@alexshendi The reason was likely not technical, e.g. using a specific algorithm. Rather, degrees by default was probably more natural. As [email protected] suggested to look up in the manual, ATAN/ARCTAN take an optional argument to return radians. This style of optional arguments with flags is typical of Interlisp.