Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6648
| From | "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Bad Precision output for SphericaBesselY and BesselY |
| Date | 2011-11-23 12:03 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jained$eeg$1@smc.vnet.net> (permalink) |
| References | <jafud8$rrr$1@smc.vnet.net> |
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
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