From: Mathieu Bouchard Date: 2001-12-06T02:38:41+09:00 Subject: [ruby-talk:27573] Re: Help! acos, asin - where? On Thu, 6 Dec 2001, Thomas R. Corbin wrote: > I found the Math::atan2 (why 2?) method, but haven't figured out how to do > acos or asin. I'm sure I'm missing something simple, but I'm stumped. > > Thanks for your help, > Tom Corbin > def Math.asin x; atan2 x,sqrt(1-x*x) end def Math.acos x; atan2 sqrt(1-x*x),x end ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju