[sage-support] Re: Simplification / Latex question

2010-06-30 Thread kcrisman
As far as I understand from your previous comments, a way to extract the exponential functions from the expression is all you need. You don't really need to walk through the tree. Here is one way to do this: sage: t = exp(x+y)*(x-y)*(exp(y)+exp(z-y)) sage: t (e^(-y + z) + e^y)*(x - y)*e^(x

[sage-support] Re: Simplification / Latex question

2010-06-26 Thread Jason Grout
On 6/24/10 6:15 AM, kcrisman wrote: Right. This crops up in the middle of a more complicated expression. If I could figure out how to break the expression up in the right way, then I guess I could search for parts that are exponential functions, take the log of those, and then simplify the

Re: [sage-support] Re: Simplification / Latex question

2010-06-26 Thread Mike Witt
On 06/26/2010 03:26:06 PM, Jason Grout wrote: On 6/24/10 6:15 AM, kcrisman wrote: Right. This crops up in the middle of a more complicated expression. If I could figure out how to break the expression up in the right way, then I guess I could search for parts that are exponential functions,

[sage-support] Re: Simplification / Latex question

2010-06-26 Thread kcrisman
I believe that Ticket #9329 was generated in response to my original post, before I understood that there was a Latex issue involved. I believe that Ticket #9329 should be deleted (closed or whatever). But part of your question was also to try to simplify more complicated expressions, and it

Re: [sage-support] Re: Simplification / Latex question

2010-06-26 Thread Mike Witt
On 06/26/2010 05:21:21 PM, kcrisman wrote: I believe that Ticket #9329 was generated in response to my original post, before I understood that there was a Latex issue involved. I believe that Ticket #9329 should be deleted (closed or whatever). But part of your question was also to try to

[sage-support] Re: Simplification / Latex question

2010-06-25 Thread kcrisman
Dear Mike, Just to follow up: There is further discussion at http://trac.sagemath.org/sage_trac/ticket/9329 if you are interested in saying exactly what sort of data structure would enable you to perform the simplifications you would like to without having to create a custom Maxima

Re: [sage-support] Re: Simplification / Latex question

2010-06-25 Thread Mike Witt
On 06/25/2010 06:07:02 AM, kcrisman wrote: Dear Mike, Just to follow up: There is further discussion at http://trac.sagemath.org/sage_trac/ticket/9329 if you are interested in saying exactly what sort of data structure would enable you to perform the simplifications you would like to

[sage-support] Re: Simplification / Latex question

2010-06-24 Thread kcrisman
sage: n=var('n') sage: f=e^(i*x*pi*n-i*2*pi*n) sage: f.simplify_full() e^(I*pi*n*x - 2*I*pi*n) # Is there a way I can get this to simplify? This apparently isn't even that easy in Maxima. Maxima 5.21.1http://maxima.sourceforge.net using Lisp ECL 10.4.1 Distributed under

Re: [sage-support] Re: Simplification / Latex question

2010-06-24 Thread Mike Witt
On 06/24/2010 06:15:52 AM, kcrisman wrote: sage: n=var('n') sage: f=e^(i*x*pi*n-i*2*pi*n) sage: f.simplify_full() e^(I*pi*n*x - 2*I*pi*n) # Is there a way I can get this to simplify? This apparently isn't even that easy in Maxima. Maxima

[sage-support] Re: Simplification / Latex question

2010-06-24 Thread kcrisman
I've noticed too about how maxima continues to ask things that (it would seem) you have already told it. I guess it would be in my best interests to learn more about maxima. If you are serious about doing symbolic manipulation that you can control from within Sage, yes. That said, various

Re: [sage-support] Re: Simplification / Latex question

2010-06-23 Thread Mike Witt
On 06/22/2010 12:41:17 PM, kcrisman wrote: sage: n=var('n') sage: f=e^(i*x*pi*n-i*2*pi*n) sage: f.simplify_full() e^(I*pi*n*x - 2*I*pi*n) # Is there a way I can get this to simplify? This apparently isn't even that easy in Maxima. Maxima 5.21.1 http://maxima.sourceforge.net using Lisp

[sage-support] Re: Simplification / Latex question

2010-06-22 Thread kcrisman
sage: n=var('n') sage: f=e^(i*x*pi*n-i*2*pi*n) sage: f.simplify_full() e^(I*pi*n*x - 2*I*pi*n) # Is there a way I can get this to simplify? This apparently isn't even that easy in Maxima. Maxima 5.21.1 http://maxima.sourceforge.net using Lisp ECL 10.4.1 Distributed under the GNU Public