Opened 11 years ago

Closed 10 years ago

#11656 closed defect (duplicate)

Imaginary part of symbolic variable disappears in simplify_full()

Reported by: jan Owned by: burcin
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: symbolics Keywords: maxima
Cc: Merged in:
Authors: Reviewers: Burcin Erocal
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jan)

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

print (C.imag())

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

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:

Change History (4)

comment:1 Changed 11 years ago by jan

  • Description modified (diff)
  • Keywords maxima added

comment:2 Changed 10 years ago by burcin

  • Milestone changed from sage-5.0 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

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

comment:3 Changed 10 years ago by burcin

  • Reviewers set to Burcin Erocal
  • Status changed from needs_review to positive_review

comment:4 Changed 10 years ago by jdemeyer

  • Resolution set to duplicate
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.