From: Ron Fox Date: 2007-10-23T02:40:03+09:00 Subject: Re: Nth Root in Ruby def rootn(x,n) Math.exp(Math.log(x)/n) end Probably should check for X > 0 and do appropriate special case code if not. RF Peter Laurens wrote: > Hi, > > I have tried Googling, but am finding it difficult to track down an > answer to my question: > > What's the easiest way to calculate the Nth root of a number in Ruby, > I've looked at the Math module but this doesn't seem to include this > functionality unless I'm missing something. Do I need to roll my own? > > Thanks, > > - N