Using chebfun to find roots of function with tangent
Show older comments
Hello,
I have to find the nonzero roots of an equation and then plug them into a summation. I determined chebfun is probably the best way to find the nonzero roots but I receive errors about the function being unresolved using 65000+ points and have I tried 'splitting on' which I think is due to tan(x) being in my function?
The function I need to non-zero roots for is below, where alpha is a previously found integer. I don't even need all the non-zero roots the first 5 or so (say a range of 0:30) would be sufficient): f = tan(x)-((3*x)./(3+alpha*(x^2)))
I then need to plug-in these non-zero positive roots to this second equation as the variable "r" so I was going to step through the roots matrix and sum the values of the function below. Again "alpha" is a pre-defined integer and so is "Deff". (6*alpha*(1+alpha)*exp(-Deff*(r.^2)*(t/(rS.^2))))/(9+9*(r.^2)*(alpha.^2))
Thank you! Melissa
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!