I'm fairly new to Mathematica so forgive any stupid mistakes. Here's my function:
x = 3;
f[b_] := BesselY[1, b] BesselJ[1, b x] - BesselJ[1, b] BesselY[1, b x] == 0
Not too ugly. I'm trying to use the findAllRoots function created by the user Jens seen here: Find all roots of an interpolating function (solution to a differential equation)
With this as my input:
findAllRoots[f[b], {b, 0, 10}, "ShowPlot" -> True]
I get the correct graph but then a mess of error messages and an unfinished output:
FindRoot::nlnum: The function value {False} is not a list of numbers with dimensions {1} at {x$1716} = {1.63463}. >>
FindRoot::nlnum: The function value {False} is not a list of numbers with dimensions {1} at {x$1716} = {3.16008}. >>
FindRoot::nlnum: The function value {False} is not a list of numbers with dimensions {1} at {x$1716} = {4.72677}. >>
General::stop: Further output of FindRoot::nlnum will be suppressed during this calculation. >>
ReplaceAll::reps: {FindRoot[localFunction$1716==0,{x$1716,1.63463,1.63769}],FindRoot[localFunction$1716==0,{x$1716,3.16008,3.26471}],FindRoot[localFunction$1716==0,{x$1716,4.72677,4.75158}],FindRoot[localFunction$1716==0,{x$1716,6.1217,6.33371}],FindRoot[localFunction$1716==0,{x$1716,7.73927,7.95071}],FindRoot[localFunction$1716==0,{x$1716,9.3727,9.58357}]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing. >>
FindRoot::fdssnv: Search specification {} without variables should be a list with 1 to 4 elements. >>
FindRoot::fdssnv: Search specification {} without variables should be a list with 1 to 4 elements. >>
FindRoot::fdssnv: Search specification {} without variables should be a list with 1 to 4 elements. >>
General::stop: Further output of FindRoot::fdssnv will be suppressed during this calculation. >>
ReplaceAll::reps: {FindRoot[localFunction$1716==0,{{},1.63463,1.63769}],FindRoot[localFunction$1716==0,{{},3.16008,3.26471}],FindRoot[localFunction$1716==0,{{},4.72677,4.75158}],FindRoot[localFunction$1716==0,{{},6.1217,6.33371}],FindRoot[localFunction$1716==0,{{},7.73927,7.95071}],FindRoot[localFunction$1716==0,{{},9.3727,9.58357}]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing. >>
Output:
{} /. {FindRoot[localFunction$1716 == 0, {{}, 1.63463, 1.63769}],
FindRoot[localFunction$1716 == 0, {{}, 3.16008, 3.26471}],
FindRoot[localFunction$1716 == 0, {{}, 4.72677, 4.75158}],
FindRoot[localFunction$1716 == 0, {{}, 6.1217, 6.33371}],
FindRoot[localFunction$1716 == 0, {{}, 7.73927, 7.95071}],
FindRoot[localFunction$1716 == 0, {{}, 9.3727, 9.58357}]}