Ticket #2071 (assigned defect)

Opened 1 year ago

Last modified 2 months ago

SymbolicExpression conjugate() method assumes variables are real

Reported by: cwitty Assigned to: gfurnish (accepted)
Priority: major Milestone: sage-3.4
Component: calculus Keywords:
Cc:

Description

sage: var('x')
x
sage: x.conjugate()
x

Under the assumption that x might be complex, this should really return conjugate(x).

Change History

03/16/2008 01:10:41 PM changed by gfurnish

  • owner changed from was to gfurnish.
  • status changed from new to assigned.

11/14/2008 01:13:10 AM changed by mhansen

This could be handled using Maxima's declare facility:

sage: sage.calculus.calculus.maxima.eval('declare(x, complex)')
'done'
sage: x.conjugate()
conjugate(x)

This also fixed by Pynac:

sage: x = var('x', ns=1)
sage: x
x
sage: x.conjugate()
conjugate(x)