MathGroup Archive 1997

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

Search the Archive

Re: FindRoot


David Djajaputra wrote:
> 
> I need to plot the root of a transcendental equation
> 
> sin(x)=x/a,     for a from 2 to 3.
> 
> I can find the root for each a using FindRoot. But how do I make a
> continuous plot
> using FindRoot?
> 
> Thanks a lot!
> 
> David Djajaputra


root[a_]:=x/.FindRoot[Sin[x]==x/a,{x,.5}]

will do the trick.  Note that the initial guess might need to be changed
to something more appropriate.  the /. notation means "such that". 
Since FindRoot returns a transformation rule, I use x such that x
transforms to #### (x/.{x->###}.


  • Prev by Date: NIntegrate where terms of integrand have unknown constant coefficients
  • Next by Date: Re: := vs. =
  • Previous by thread: Re: NIntegrate where terms of integrand have unknown constant coefficients
  • Next by thread: RE: FindRoot