My students had trouble with plotting cos(x^(1/3)) as a homework problem.
What's happening is that x^(1/3) generates a primitive complex root so I
explained that to them, then I found this work around:
def oddroot(x,n):
sgn(x)*(abs(x))^(1/n)
This is work for any odd number n and will plot nicely over all of R. I
see others have had this question on the forum so I thought I'd share.
I don't know if the devs want to implement something like this into SAGE
more generally, probably not, but at least this is a work around for simple
graphing etc.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.