#12074: real nth root function
---------------------------------------------+------------------------------
Reporter: burcin | Owner: burcin
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.8
Component: symbolics | Keywords: nth_root
Work_issues: needs tests and documentation | Upstream: N/A
Reviewer: | Author: Burcin Erocal
Merged: | Dependencies:
---------------------------------------------+------------------------------
Comment(by burcin):
Replying to [comment:2 jdemeyer]:
> Is there any chance this could be made into a function that we can do
calculus with, like computing derivatives, integrals, solving equations...
(I'm afraid the answer will be no though because we need maxima).
This is already a symbolic function, so it plays well with symbolics
generally (as opposed to piecewise functions for instance):
{{{
sage: v = nth_root(x,3)
sage: v*sin(x) + x^2
x^2 + real_nth_root(x, 3)*sin(x)
}}}
I updated the patch to add custom exponentiation and derivative methods as
well:
{{{
sage: v^2
real_nth_root(x, 3/2)
sage: v*v
real_nth_root(x, 3/2)
sage: v.diff(x)
1/3*real_nth_root(x, -3/2)
}}}
This all needs a lot of work of course.
For integration and solving equations we call out to maxima. One way to
get sensible results from these calls would be to convert this function to
a regular `(base)^(exp)` representation when passing it to maxima. I don't
think there is any way to read it back from the maxima result though.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12074#comment:3>
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.