Ask Your Question
0

Arbitrary precision BesselY

asked 2013-01-03 09:52:57 +0100

FrankSt gravatar image

Hi, I consider using Sage for some calculations which contain Bessel functions of complex arguments. Since I have to mix Bessel functions with very small and very large arguments I require precision higher than 15 digits.

Unfortunately, I recognized that BesselY is not implemented in PARI. But BesselJ and BesselH1 are. My physicists understanding of math tells me, I could just use "(BesselH1-BesselJ)/i". But I am surprised that this has not been discussed before (at least I couldn't find it), since this would allow a quick implementation of BesselY. Am I missing something that's obvious for math experts? Or can I just use above definition to get an arbitrary precision BesselY?

Many thanks Frank

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-01-03 10:16:23 +0100

achrzesz gravatar image

Try:

sage: import mpmath  
sage: mpmath.bessely?

(mpmath is multiprecision package)

edit flag offensive delete link more

Comments

Also note that when http://trac.sagemath.org/sage_trac/ticket/4102 is finished, mpmath will be the default evaluation mode and so asking for as much precision as you want *should* work.

kcrisman gravatar imagekcrisman ( 2013-01-03 10:24:51 +0100 )edit
0

answered 2013-01-03 10:39:18 +0100

FrankSt gravatar image

Didn't know about mpmath. It seems to provide all I need.

Many thanks Frank

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-01-03 09:52:57 +0100

Seen: 296 times

Last updated: Jan 03 '13