#10898: symbolic_expression_from_string does not support arbitrary precision
-------------------------+--------------------------------------------------
Reporter: flawrence | Owner: burcin
Type: defect | Status: new
Priority: major | Milestone: sage-4.7
Component: calculus | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------+--------------------------------------------------
Description changed by flawrence:
Old description:
> 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 sefssage: pi_on_two =
> '1.57079632679489661923132169163975144209858469968755'
> sage: sefs(pi_on_two)
> 1.57079632679
> sage: sage_eval(pi_on_two)
> 1.5707963267948966192313216916397514420985846996875
> }}}
New description:
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
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10898#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.