Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Find root(mathematica)

  1. Oct 22, 2009 #1

    I have an interpolated function at mathematica

    x->InterpolatingFunction blahblahblah

    which looks like a sin

    I want to find all the roots between {x0,x1} (in a list if possible)

    Is there any way to achieve this?
    I tried FindRoot and Reduce but I couldn't...
  2. jcsd
  3. Oct 22, 2009 #2
    I used NSolve

    and I got


    is there any way to use this?
  4. Oct 22, 2009 #3


    Staff: Mentor

    I would use:

    Union[Table[x /. FindRoot[f[x], {x, xInit}], {xInit, xMin, xMax, xStep}]]
  5. Oct 23, 2009 #4
    Thanks a lot
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook