rootfind problem...

*To*: mathgroup at yoda.ncsa.uiuc.edu*Subject*: rootfind problem...*From*: ccetinka at symcom.math.uiuc.edu (Cetin Cetinkaya)*Date*: Fri, 2 Nov 90 02:00:03 GMT

Hi; Could anybody tell me what I am doing wrong in the following Mathematica session: In[22]:= f[x_]:=NIntegrate[Sin[s],{s,0,x}] In[23]:= FindRoot[f[y]==0,{y,-1}] NIntegrate::lim: Numerical integration limits {s, 0, y} are not invalid. NIntegrate::lim: Numerical integration limits {s, 0, s} are not invalid. NIntegrate::vars: Integration range specification #2 is not of the form {x, xmin, xmax}. FindRoot::jnotnum: Partial derivative of function 1 w.r.t. variable 1 is not numerical at (0.,1.) {-1.}={0., 0., NIntegrate [Sin[s], {s, 0., -1.}]} . Try giving two starting values for each variable. Out[23]= FindRoot[NIntegrate[Sin[s], {s, 0, y}] == 0, {y, -1}] In[24]:= f[3] Out[24]= 1.98999 Thank You, C.Cetinkaya