Problems with overflow with Bessel

I'm working on simulation of whispering gallery mode and i need to calculate the field inside some microresonators using Bessel and Hankel functions and their derivatives.
Everything works until i tried to evaluate this function for some nu,Z values.
In some cases i have found -Inf, +Inf or 0.
E.g.
spherical_besselj(400,100)
ans =
5.036580472507386e-194
spherical_besselj(600,100)
ans =
0
This is very frustrating for me because this limits my simulations in a range of values too small.
Can you help me?
Can someone let me understand the problem?
Is there a way to prevent this problems?
Thank you very much
Andrea

1 Comment

You might need to switch to the Symbolic Toolbox

Sign in to comment.

Answers (0)

Asked:

on 17 Nov 2015

Commented:

on 17 Nov 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!