Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow different algorithms for evaluating erf #13050

Open
benjaminfjones opened this issue May 28, 2012 · 7 comments
Open

allow different algorithms for evaluating erf #13050

benjaminfjones opened this issue May 28, 2012 · 7 comments

Comments

@benjaminfjones
Copy link
Contributor

In #1173 an mpmath numerical evaluator for erf was written by Douglas McNeil. This ticket proposes to save that code, incorporate it with the ability to pass an algorithm parameter to numerical_approx from #12289. We could support Pari, mpmath, and Maxima.

It would even be useful to see where Pari is faster.

Depends on #12289

CC: @sagetrac-dsm @kcrisman

Component: symbolics

Keywords: sd40.5 mpmath pari erf

Author: Benjamin Jones

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

@benjaminfjones
Copy link
Contributor Author

Attachment: trac_13050_erf_mpmath_eval.patch.gz

add mpmath evaluation to erf

@benjaminfjones
Copy link
Contributor Author

Changed dependencies from 12289 to #12289

@kcrisman
Copy link
Member

kcrisman commented Jul 2, 2012

comment:2

See comments at #11948 for why we probably want to do this or #1173 as soon as possible.

@jdemeyer
Copy link
Contributor

jdemeyer commented Jul 2, 2012

comment:3

This looks like a duplicate of #1173 to me.

@kcrisman
Copy link
Member

kcrisman commented Jul 2, 2012

comment:4

This looks like a duplicate of #1173 to me.

I think that the point of this ticket was to do some of the things at #1173 more quickly, or using a different infrastructure, or something. Ben, what was the rationale exactly?

@kcrisman
Copy link
Member

comment:5

I think that we can repurpose this ticket to adding the algorithm keyword here. Some good examples from #1173 (most were added in #13001):

Verify we're returning the appropriate zero:: 

            sage: erf(0) 
            0 
            sage: erf(0.0) 
            0.000000000000000 
            sage: erf(RealField(100)(0)) 
            0.00000000000000000000000000000 
set(erf(45*10**i).n() for i in range(10)) 
sage: CC(erf(ComplexField(1000)(2+3j))) 

@kcrisman

This comment has been minimized.

@kcrisman kcrisman changed the title change default numerical evaluation of erf to use mpmath allow different algorithms for evaluating erf Jun 19, 2013
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants