Skip to content

Fix numerical_approx with algorithm keyword #14778

@kcrisman

Description

@kcrisman

This is not currently an issue since we haven't implemented it, but we should make it work. See #12289.

sage: erf(1).n(algorithm='foo')
0.842700792949715
sage: erf(0)
0
sage: parent(erf(0))
Integer Ring
sage: erf(0).n(algorithm='foo')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/Users/mcneil/sagedev/sage-5.1.beta0b/sage-5.1.beta0/devel/sage-hack2/sage/<ipython console> in <module>()

/Users/mcneil/sagedev/sage-5.1.beta0b/sage-5.1.beta0/local/lib/python2.7/site-packages/sage/structure/element.so in sage.structure.element.Element.numerical_approx (sage/structure/element.c:4988)()

TypeError: numerical_approx() got an unexpected keyword argument 'algorithm'

Depends on #12289

CC: @eviatarbach

Component: symbolics

Keywords: algorithm

Author: Eviatar Bach

Branch/Commit: f9d60c8

Reviewer: Ralf Stephan

Issue created by migration from https://trac.sagemath.org/ticket/14778

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions