Re: [sage-devel] cube roots in Sage

2014-06-18 Thread Jori Mantysalo
On Tue, 17 Jun 2014, Gregory Bard wrote: This has been brought up many times before, but I'd like to bring up the possibility of adding two commands to Sage: cuberoot(x) and nthroot(x, n) Could you summarize previos discussion(s)? For example what should cuberoot(1)^2 be? Different from cuber

[sage-devel] cube roots in Sage

2014-06-17 Thread Gregory Bard
This has been brought up many times before, but I'd like to bring up the possibility of adding two commands to Sage: cuberoot(x) and nthroot(x, n) The reason is that currently plot( x^(1/3), -5, 5) only shows values for x>0, and not for x<0. The current work-around recommended is plot(sign(x)*ab