From ... Path: supernews.google.com!sn-xit-02!supernews.com!wn4feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!EU.net!Norway.EU.net!127.0.0.1!nobody From: Erik Naggum Newsgroups: comp.lang.lisp Subject: Re: Q: Degree instead of Radian? Date: 15 Dec 2000 00:12:42 +0000 Organization: Naggum Software; vox: +47 800 35477; gsm: +47 93 256 360; fax: +47 93 270 868; http://naggum.no; http://naggum.net Lines: 18 Message-ID: <3185827962272956@naggum.net> References: <141220001220581488%sungwoo@cad.strath.ac.uk> <3A38BE71.B8707CB8@solibri.com> <141220001309317371%sungwoo@cad.strath.ac.uk> <3A38E026.E513683E@solibri.com> <87wvd32c0a.fsf@orion.bln.pmsf.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: oslo-nntp.eunet.no 976839421 17248 195.0.192.66 (15 Dec 2000 00:17:01 GMT) X-Complaints-To: newsmaster@eunet.no NNTP-Posting-Date: 15 Dec 2000 00:17:01 GMT mail-copies-to: never User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Xref: supernews.google.com comp.lang.lisp:5264 * "Pierre R. Mai" | That should make it both more readable, and less error-prone. If the | need for speed is even greater you could consider declaring rad-to-deg | inline (or using compiler-macros for the same effect on | implementations like Franz' ACL) and/or (after careful analysis!) | reducing safety to 0. I would have suggested a compiler macro on the trigonometric functions that looked for a conversion of the argument from degrees to radians, say with a form like (sin (degrees ...)), to do the computation and conversion with as little loss of precision as possible. This may be done only if you shadow the symbol in new package, since sin (etc) are in the common-lisp package and anyone else doing a similar compiler- macro would mess with yours. #:Erik -- The United States of America, soon a Bush league world power. Yeee-haw!