- #1
Curl
- 758
- 0
I want to find roots of a function using MATLAB. The function is x*tan(x)-A=0. "A" is an arbitrary constant.
If I use fzero or fsolve, it will find the root closest to the guess.
Is there any way of getting, say, the first 5 roots of this function? I don't know where the roots are at, so I can't do a loop with multiple guesses since I have no idea what to guess.
There's got to be a way, can anyone help?
If I use fzero or fsolve, it will find the root closest to the guess.
Is there any way of getting, say, the first 5 roots of this function? I don't know where the roots are at, so I can't do a loop with multiple guesses since I have no idea what to guess.
There's got to be a way, can anyone help?