Skip to content

Imaginary part of symbolic variable disappears in simplify_full() #11656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sagetrac-jan mannequin opened this issue Aug 6, 2011 · 4 comments
Closed

Imaginary part of symbolic variable disappears in simplify_full() #11656

sagetrac-jan mannequin opened this issue Aug 6, 2011 · 4 comments

Comments

@sagetrac-jan
Copy link
Mannequin

sagetrac-jan mannequin commented Aug 6, 2011

var('c', domain='complex')
var('x', domain='real')
C = c * exp(-x^2)
print (C)
    c*e^(-x^2)

print (C.imag())
    e^(-x^2)*imag_part(c)

print (C.imag().simplify_full()) 
    0

Related to two-year old bug #6862. It seems, variables declared as 'complex', are assumed real in maxima. This is fixed by using sage's assume command

assume(c, 'complex')
print (C.imag().simplify_full()) 

gives the correct result.

demonstration notebook: http://demo.sagenb.org/home/pub/178/

Component: symbolics

Keywords: maxima

Reviewer: Burcin Erocal

Issue created by migration from https://trac.sagemath.org/ticket/11656

@sagetrac-jan sagetrac-jan mannequin added this to the sage-5.0 milestone Aug 6, 2011
@sagetrac-jan sagetrac-jan mannequin added c: symbolics labels Aug 6, 2011
@sagetrac-jan sagetrac-jan mannequin assigned burcin Aug 6, 2011
@sagetrac-jan

This comment has been minimized.

@sagetrac-jan
Copy link
Mannequin Author

sagetrac-jan mannequin commented Aug 7, 2011

Changed keywords from none to maxima

@burcin
Copy link
Contributor

burcin commented Feb 8, 2012

comment:2

As stated in the description, this is a duplicate of #6862.

@burcin burcin removed this from the sage-5.0 milestone Feb 8, 2012
@burcin
Copy link
Contributor

burcin commented Feb 8, 2012

Reviewer: Burcin Erocal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants