Message Boards Message Boards

0
|
4026 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Plot of Bessel function expression?

Posted 3 years ago

Hi, I am trying to make a plot of an expression involving Bessel functions:

J0J1Y0Y1[z_]:=BesselJ[0,z] BesselJ[1,z]+BesselY[0,z] BesselY[1,z];

Plot[N[J0J1Y0Y1[z],500],{z,0,10^15}]

but the result looks doubtful: it is not a smooth curve but a piecewise smooth curve resembling a sawtooth. Do I do anything wrong?

Leslaw

POSTED BY: Leslaw Bieniasz

Try

Plot[N[J0J1Y0Y1[z],500],{z,0,10^15},WorkingPrecision->50]

The default is WorkingPrecision->MachinePrecision, which is about 16 on my computer (the variable $MachinePrecision).

POSTED BY: Adam Mendenhall
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract