PDA

View Full Version : find root(mathematica)


LordV
Oct22-09, 07:34 AM
Hello,

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...

LordV
Oct22-09, 08:11 AM
I used NSolve

and I got

t->InverseFunction[InterpolatingFunction...

is there any way to use this?

DaleSpam
Oct22-09, 10:54 AM
I would use:

Union[Table[x /. FindRoot[f[x], {x, xInit}], {xInit, xMin, xMax, xStep}]]

LordV
Oct23-09, 03:18 AM
Thanks a lot