1. Pynac
  2. Untitled project
  3. pynac
  4. Issues
Issue #15 new

wrong result from real part

Burcin Erocal
created an issue

Reported in Sage issue #12807:

sage: a = exp(i*2*pi/3)
sage: b = exp(i*pi/3)
sage: c = 2*a-b
sage: c.real()


sage: N(c).real()

Note that we can compute the real part of a and b correctly. Something goes wrong when combining the result. Probably because Python int's get involved at some point.

sage: a.real()
sage: b.real()

Comments (0)

  1. Log in to comment