From: "Thomas R. Corbin" Date: 2001-12-06T03:04:52+09:00 Subject: [ruby-talk:27578] Re: Help! acos, asin - where? Mathieu Bouchard wrote: > > 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 Thanks! This is great... But shouldn't this be in the Math module? Sorry if I'm missing something. Tom Corbin