Opened 10 years ago

Last modified 7 years ago

#10898 new defect

symbolic_expression_from_string does not support arbitrary precision

Reported by: flawrence Owned by: burcin
Priority: major Milestone: sage-6.4
Component: calculus Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by flawrence)

In some places (e.g. #8495), sage.calculus.calculus.symbolic_expression_from_string is being used as a safer alternative to sage_eval. However, it does not seem to support numbers with arbitrary precision. It should.

sage: from sage.calculus.calculus import symbolic_expression_from_string as sefs
sage: pi_on_two = '1.57079632679489661923132169163975144209858469968755'
sage: sefs(pi_on_two)
1.57079632679
sage: sage_eval(pi_on_two)
1.5707963267948966192313216916397514420985846996875

Change History (5)

comment:1 Changed 10 years ago by flawrence

  • Description modified (diff)

comment:2 Changed 8 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:3 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:4 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:5 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4
Note: See TracTickets for help on using tickets.