Re: [sage-edu] cube roots in Sage

2014-07-17 Thread Dan Drake
On Thu, 17 Jul 2014 at 10:29AM -0700, Martin Flashman wrote: > On naming the function: eventually a shorter name would be helpful if this > is to become a core real function: > perhaps r_rootn(x,n) or simply rootn(x,n). I would argue that the longer name is more helpful. With "real_nth_root" it'

Re: [sage-edu] cube roots in Sage

2014-07-17 Thread Martin Flashman
Norbert's solution is short but unfortunately for nth_real_root(4,2) gives a result of -2 instead of what the TC MITS expected result of 2. One slight modification handles that issue to give results that match these expectations- Unfortunately- this function doesn't seem to plot!???: def nth_r