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


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

Re: Bad Precision output for SphericaBesselY and

From Oliver Ruebenkoenig <ruebenko@wolfram.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Bad Precision output for SphericaBesselY and
Date 2011-11-22 12:24 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jag4aa$6n$1@smc.vnet.net> (permalink)
References <201111221036.FAA28073@smc.vnet.net>

Show all headers | View raw



On Tue, 22 Nov 2011, Antonio Alvaro Ranha Neves 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
>
>
>

Antonio,

you could use exact arithmetic and only later derive the numeric 
quantities.

n = 150
x = 1203/10
BesselY[n + 1/2, x] // Precision
BesselJ[n + 1/2, x] // Precision

N[BesselY[n + 1/2, x], 100] // Precision
N[BesselJ[n + 1/2, x], 100] // Precision

gives a precision of 100. for both.

Oliver

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


Thread

Re: Bad Precision output for SphericaBesselY and Oliver Ruebenkoenig <ruebenko@wolfram.com> - 2011-11-22 12:24 +0000
  Re: Bad Precision output for SphericaBesselY and Richard Fateman <fateman@cs.berkeley.edu> - 2011-11-23 12:03 +0000

csiph-web