>
> That does the job. But now I found a harder problem. Now I need to
> substitute a subexpression of "e", by some other expression. Example
>
>
> e = exp(x)+1
> f=e.subs(exp(x), w)
>
> so f will be w+1. Is that possible in SAGE? I fear it's only possible
> to substitute for a symbol. I am attaching the converted files so far,
> put them in one directory and use with

Hey Ondrej,

Yeah, I don't think the symbolic stuff was really designed with that
in mind.   Your best bet would be to go through the symbolic types in
calculus/calculus.py and add a _recursive_sub_expression(self,
to_match, replacement).

--Mike

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to