Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6648

Re: Bad Precision output for SphericaBesselY and BesselY

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!204.153.245.137.MISMATCH!pink.octanews.net!indigo.octanews.net!news-out.octanews.net!mauve.octanews.net!newsfeeds.sol.net!post2.nntp.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail
From "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Bad Precision output for SphericaBesselY and BesselY
Date Wed, 23 Nov 2011 12:03:25 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <jained$eeg$1@smc.vnet.net> (permalink)
References <jafud8$rrr$1@smc.vnet.net>
Lines 41
NNTP-Posting-Date 23 Nov 2011 11:07:43 GMT
NNTP-Posting-Host 01607035.news.twtelecom.net
X-Trace DXC=B\e7[cAY64k=e0<5NOFKkjC_A=>8kQj6mm^eQlV`f18g:Xj>;_IblD`EFiONJ7[GofeZMF\@dX1hl
X-Complaints-To abuse@twtelecom.net
Xref x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:6648

Show key headers only | View raw


On Tue, 22 Nov 2011 10:43:52 -0000, Antonio Alvaro Ranha Neves  
<aneves@gmail.com> wrote:

> Dear users,
>
> Recently I'm working with precision calculations of spherical functions.  
> Example, let,
>
> n = 150
> x = SetPrecision[120.3, 100]
> BesselY[n + 1/2, x] // Precision
> BesselJ[n+ 1/2, x] // Precision
>
>
> Yields 67.2708 and 96.9297 respectively. The two questions are:
> 1) Why does BesselY results in a worse than BesselJ?
> 2) How to redefine, BesselY to automatically output a result with a  
> desired pecision?
>
> Note: Simply using N[expr,90], does not yield a result of expr with 90  
> precision but maintains the same 67.2708.
>
> Thanks,
> Antonio
>
>

Both functions lose precision, and BesselY loses a lot. Why this would be  
I don't know off-hand as I'm not sure what method these functions use to  
calculate their outputs. However, the essential problem is that there  
isn't enough precision in your input. If you try

x = SetPrecision[120.3, Infinity]

or better

x = Rationalize[120.3]

then N is able to give you an output with the full 90 digits of precision  
in both cases.

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bad Precision output for SphericaBesselY and BesselY Antonio Alvaro Ranha Neves <aneves@gmail.com> - 2011-11-22 10:43 +0000
  Re: Bad Precision output for SphericaBesselY and BesselY "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-11-23 12:03 +0000
  Re: Bad Precision output for SphericaBesselY and BesselY Peter Pein <petsie@dordos.net> - 2011-11-23 12:14 +0000
  Re: Bad Precision output for SphericaBesselY and BesselY Antonio Alvaro Ranha Neves <aneves@gmail.com> - 2011-11-24 12:12 +0000
    Re: Bad Precision output for SphericaBesselY and BesselY Peter Falloon <pfalloon@gmail.com> - 2011-11-25 10:04 +0000
    Re: Bad Precision output for SphericaBesselY and BesselY "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-11-25 10:11 +0000

csiph-web