Revision history [back]

Another way to do it is using the method x.nth_root(3) for real numbers x, then you can use something like

sage: plot(lambda x: RR(x).nth_root(3), -1,1)


what gives the correct plot.

 2 No.2 Revision slelievre 14559 ●16 ●136 ●287 http://carva.org/samue...

Another way is to do it is using use the method x.nth_root(3) for real numbers x, then you can use something like.

Using this,

sage: plot(lambda x: RR(x).nth_root(3), -1,1)
(-1, 1))


what gives the correct desired plot.

Another way is to use the method x.nth_root(3) for real numbers x.

Using this,this

sage: plot(lambda x: RR(x).nth_root(3), (-1, 1))


gives the desired plot.