Opened 9 years ago

Last modified 8 years ago

#14620 new enhancement

adaptive numerical approximation

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

Status badges

Description

It would be nice to have an adaptive algorithm for numerical evaluation of expression and number field elements. This would avoid the following behavior

sage: a = (106*pi - 333) / (355 - 113*pi)
sage: a.n(digits=5)
Traceback (most recent call last)
...
ValueError: power::eval(): division by zero
sage: a.n(digits=6)
289.000
sage: a.n(digits=7)
289.0000
sage: a.n(digits=8)
293.65079
sage: a.n(digits=9)
292.772502
sage: a.n(digits=10)
292.6277805
sage: a.n(digits=11)
292.63234726

where we can not rely on the last digits.

See the discussion on this sage-devel thread

Change History (4)

comment:1 Changed 9 years ago by Jeroen Demeyer

Milestone: sage-5.11sage-5.12

comment:2 Changed 9 years ago by For batch modifications

Milestone: sage-6.1sage-6.2

comment:3 Changed 8 years ago by For batch modifications

Milestone: sage-6.2sage-6.3

comment:4 Changed 8 years ago by For batch modifications

Milestone: sage-6.3sage-6.4
Note: See TracTickets for help on using tickets.