Opened 14 years ago

Closed 14 years ago

#587 closed defect (fixed)

bug in floating point complex number creation

Reported by: was Owned by: mhansen
Priority: major Milestone: sage-2.8.4
Component: basic arithmetic Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

This was found by Markus Fraczek:

sage: 1e8
100000000.000000
sage: 1e8*I
boom -- typeerror

Attachments (2)

587.patch (665 bytes) - added by mhansen 14 years ago.
patch for calculus.py
587-2.patch (389 bytes) - added by mhansen 14 years ago.
patch for constants.py

Download all attachments as: .zip

Change History (5)

comment:1 Changed 14 years ago by mhansen

  • Owner changed from somebody to mhansen

comment:2 Changed 14 years ago by mhansen

There problem was that SAGE doesn't like strings such as "1.0E+8*I" in symbolic_expression_from_maxima_string() , and the fix to replace all such occurrences of scientific notation with expanded notation (or at least on that doesn't involved pluses.

587.patch patches the calculus.py file. 587-2.patches adds the problem as a doctest

Changed 14 years ago by mhansen

patch for calculus.py

Changed 14 years ago by mhansen

patch for constants.py

comment:3 Changed 14 years ago by was

  • Resolution set to fixed
  • Status changed from new to closed

fixed by mike hansen.

Note: See TracTickets for help on using tickets.