#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 jason):
Replying to [comment:3 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 :).
>
> 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...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12935#comment:4>
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.