I'm pretty new at using Mathematica, so I sometimes find errors in stuff so simple I can't seem to find where the error is.
I've been trying to solve a trascendental equation that involves a number of Bessel's functions, and I can't seem to find why it doesn't work.
Here it goes.
a = 0.889;
b = 2.946;
Er = 2.2;
f[x_, n_] := BesselJ[n, a*x] BesselY[n, b*x] - BesselJ[n, b*x] BesselY[n, a*x];
NSolve[f[x, 0] == 0, x];
Has it something to do with it being an infinite number of solutions, or something like that?
Thanks in advance.
PD : I tried giving it an interval as march suggested, but I got an error I don't understand. What does it mean?
Solve::ratnz: Solve was unable to solve the system with inexact coefficients. The answer was obtained by solving a corresponding exact system and numericizing the result. >>



FindRoot, but if you specify an interval:NSolve[f[x, 0] == 0 && x \[Element] Interval[{0, 5}], x]gives you three solutions. – march Oct 18 '16 at 18:14- As you receive help, try to give it too, by answering questions in your area of expertise.
- Take the tour and check the faqs!
- When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign!
– Oct 18 '16 at 18:36NSolvegave me only two, not three, solutions in{0,5}; you can try alsoFindInstance[f[x, 0] == 0 && x \[Element] Interval[{0, 5}], x, 3]. – corey979 Oct 18 '16 at 18:44NSolvegave me three solutions in the interval. Really, I don't thinkNSolveis the right thing to use here anyway, for exactly these kinds of difficulties. By the way, TheCloak, the error it's spitting out is due to the fact that you have a transcendental equation, andNSolveis not in general designed to solve those. I suggest looking at this Q&A, which I think I will propose as a duplicate. – march Oct 18 '16 at 19:00