#12935: Add another cube root plotting example to plot doc
---------------------------------+------------------------------------------
Reporter: kcrisman | Owner: mvngu
Type: enhancement | Status: new
Priority: minor | Milestone: sage-5.1
Component: documentation | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
---------------------------------+------------------------------------------
Comment (by kcrisman):
> > > Can I suggest `plot(sign(x)*(x*sign(x))^(1/3), (x,-4,4))` as the
code to add?
> > That's what I attempted to suggest above.
>
> Right---I just added the `(x,-4,4)` notation for the range, since we
need to specify the variable because it is a symbolic expression instead
of a callable function :).
Naturally, I was just being terse.
> >
> > The point of adding this example was that a number of users (including
the originator of this example) thought that students wouldn't know what
lambda functions were - not to mention the dot notation. I guess I view
them as equally complicated, though the `sign` solution has the advantage
that most of use probably implicitly use this when discussing the absolute
value function as a piecewise linear function and not just "make it
positive" early in any course where cube roots would be plotted.
>
> Yeah, adding both examples wouldn't be a bad idea. I thought the
nth_root example was already there...
I meant adding this example; you are right that the other one is already
there. Ideally, they'd be together.
Ideally, we'd also have time to create some nice document that answers all
such questions, perhaps cribbed from our PREP documents... which we should
really finally make ready for the Sage documentation this summer. Not
that you don't have other things to do.
Anyway, any thoughts on adding some such function (with a name making it
clear it's really just for this purpose) globally for plotting/pedagogical
purposes only? This has been discussed before without resolution, just
raising the question again.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12935#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.