Il 29/11/2011 21:14, [email protected] ha scritto:
Hi! I'm working with an expression involving imaginary exponentials and their 
conjugates:

Does it helps ?

sage: x=var('x')
sage: assume(x,'real')
sage: a=exp(I*x)
sage: a.trig_simplify()
e^(I*x)
sage: a.real_part()
e^(-imag_part(x))*cos(real_part(x))
sage: a.real_part().simplify_full()
cos(x)

Often making
a=a.real_part().simplify_full()+a.imaginary_part().simplify_full()
helps.
(maybe simplify_trig can replace simplify_full)

At my place I have
sage: b=a*a.conjugate()
sage: b
e^(I*x - I*conjugate(x))
sage: b.simplify_full()
1

Have a good night
Laurent

--
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-support
URL: http://www.sagemath.org

Reply via email to