#10137: rewrite function for symbolic expressions
-------------------------------+----------------------------
Reporter: burcin | Owner: burcin
Type: enhancement | Status: new
Priority: major | Milestone: sage-feature
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-------------------------------+----------------------------
Description changed by rws:
Old description:
> We should have a clean interface to various transformations one might
> want to perform on symbolic expressions. For example,
>
> {{{
> sage: rewrite(exp(x), "exp2sincos")
> -I*sin(I*x) + cos(I*x)
> sage: rewrite(exp(-I*x), "exp2sincos")
> -I*sin(x) + cos(x)
> sage: rewrite(exp(a+I*b), "exp2trig")
> (sinh(a) + cosh(a))*(I*sin(b) + cos(b))
> sage: rewrite((e^x)^2-e^(-2*x)+e^(-4*x)+(e^x)^4, 'exp2sinhcosh')
> 2*sinh(2*x) + 2*cosh(4*x)
> }}}
>
> The design of this interface is being fleshed out in
>
> http://wiki.sagemath.org/symbolics/rewrite
New description:
We should have a clean interface to various transformations one might want
to perform on symbolic expressions. For example,
{{{
sage: rewrite(exp(x), "exp2sincos")
-I*sin(I*x) + cos(I*x)
sage: rewrite(exp(-I*x), "exp2sincos")
-I*sin(x) + cos(x)
sage: rewrite(exp(a+I*b), "exp2trig")
(sinh(a) + cosh(a))*(I*sin(b) + cos(b))
sage: rewrite((e^x)^2-e^(-2*x)+e^(-4*x)+(e^x)^4, 'exp2sinhcosh')
2*sinh(2*x) + 2*cosh(4*x)
}}}
The design of this interface is being fleshed out in
http://wiki.sagemath.org/symbolics/rewrite
See also http://docs.sympy.org/dev/modules/rewriting.html
--
--
Ticket URL: <http://trac.sagemath.org/ticket/10137#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 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-trac.
For more options, visit https://groups.google.com/d/optout.