Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #12807: Taking the real part of a sum of exponentials with imagi…
…nary exponents gives wrong result In sage 4.8 the following computation gives 1/2, while the right result is -3/2: {{{ sage: a = exp(i*2*pi/3) sage: b = exp(i*pi/3) sage: c = 2*a-b sage: c.real() 1/2 }}} Doing the computation numerically gives the right result: {{{ sage: N(c).real() -1.50000000000000 }}} and asking maxima directly also works: {{{ sage: (c.maxima_methods().rectform()).real() -3/2 }}} This is sage 4.8 running on Fedora 16, linux 3.1.0-7.fc16.x86_64 SMP. URL: http://trac.sagemath.org/12807 Reported by: inaki Ticket author(s): Ralf Stephan Reviewer(s): Travis Scrimshaw
- Loading branch information