|
[Date Index]
[Thread Index]
[Author Index]
Re: FindRoot
- To: mathgroup at smc.vnet.net
- Subject: [mg8917] Re: [mg8887] FindRoot
- From: seanross at worldnet.att.net
- Date: Thu, 2 Oct 1997 22:57:13 -0400
- Sender: owner-wri-mathgroup at wolfram.com
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
|