MathGroup Archive 1990

[Date Index] [Thread Index] [Author Index]

Search the Archive

rootfind problem...

  • To: mathgroup at
  • Subject: rootfind problem...
  • From: ccetinka at (Cetin Cetinkaya)
  • Date: Fri, 2 Nov 90 02:00:03 GMT


Could anybody tell me what I am doing wrong in the following Mathematica

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.

   Integration range specification #2 is not of the form {x, xmin, xmax}.

   Partial derivative of function 1 w.r.t. variable 1 is not numerical at 
    {-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,


  • Prev by Date: Integrate?
  • Next by Date: One-sided limits
  • Previous by thread: Integrate?
  • Next by thread: One-sided limits