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

pari error is thrown when computing Bessel function J0(0) #5175

Closed
pdenapo mannequin opened this issue Feb 4, 2009 · 2 comments
Closed

pari error is thrown when computing Bessel function J0(0) #5175

pdenapo mannequin opened this issue Feb 4, 2009 · 2 comments

Comments

@pdenapo
Copy link
Mannequin

pdenapo mannequin commented Feb 4, 2009

A bug under sage 3.2.3 computing J_0(0)
(which should be just "1")

sage: g=Bessel(0)
sage: g          
J_{0}            
sage: g(1)
0.765197686557967
sage: g(0)      
---------------------------------------------------------------------------
PariError                                 Traceback (most recent call last)

/home/pablo/sage/sage-3.1/<ipython console> in <module>()

/home/pablo/sage/sage-3.1/local/lib/python2.5/site-packages/sage/functions/special.pyc in __call__(self, z)
    689             return bessel_I(nu,z,algorithm=s,prec=p)
    690         if t == "J":
--> 691             return bessel_J(nu,z,algorithm=s,prec=p)
    692         if t == "K":
    693             return bessel_K(nu,z,algorithm=s,prec=p)

/home/pablo/sage/sage-3.1/local/lib/python2.5/site-packages/sage/functions/special.pyc in bessel_J(nu, z, algorithm, prec)
    522             K = C
    523         K = z.parent()
--> 524         return K(pari(nu).besselj(z, precision=prec))
    525     elif algorithm=="scipy":
    526         if prec != 53:

/home/pablo/sage/sage-3.1/local/lib/python2.5/site-packages/sage/libs/pari/gen.so in sage.libs.pari.gen._pari_trap (sage/libs/pari/gen.c:38645)()

PariError:  (8)
}}}}

Component: interfaces

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

@pdenapo pdenapo mannequin added c: algebra labels Feb 4, 2009
@sagetrac-mabshoff

This comment has been minimized.

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-3.4.1 milestone Feb 4, 2009
@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title [bug] Bug computing Bessel function J0(0) pari error is thrown when computing Bessel function J0(0) Feb 4, 2009
@aghitza
Copy link

aghitza commented Jul 11, 2009

comment:2

This works in sage-4.1:

----------------------------------------------------------------------
| Sage Version 4.1, Release Date: 2009-07-09                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: g = Bessel(0)
sage: g(0)
1.00000000000000

@aghitza aghitza changed the title pari error is thrown when computing Bessel function J0(0) [already fixed] pari error is thrown when computing Bessel function J0(0) Jul 11, 2009
@sagetrac-mvngu sagetrac-mvngu mannequin closed this as completed Aug 12, 2009
@sagetrac-mvngu sagetrac-mvngu mannequin changed the title [already fixed] pari error is thrown when computing Bessel function J0(0) pari error is thrown when computing Bessel function J0(0) Aug 12, 2009
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

2 participants