From: jzakiya Date: 2009-07-13T15:05:10+09:00 Subject: Re: Math cube root On Jul 11, 3:58 pm, Thomas Preymesser wrote: > [Note:  parts of this message were removed to make it a legal post.] > > 2009/7/11 Zangief Ief > > > Hi, > > > Is there a cube root (ashttp://en.wikipedia.org/wiki/Cube_root) > > class Numeric >   def root(arg) >     arg**(1.0/self) >   end > end > > p 3.root 27 > p 2.root 9 > > -- > Thomas Preymesser > tho...@gmail.comhttp://thopre.googlepages.com/http://thopre.wordpress.com/ > Jack Benny  - > "I don't deserve this award, but I have arthritis and I don't deserve that > either." Correction: class Numeric def root(arg); self**(1.0/arg) end end