Re: NSolve an equation involving NIntegrate
- To: mathgroup at smc.vnet.net
- Subject: [mg55726] Re: NSolve an equation involving NIntegrate
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Tue, 5 Apr 2005 03:20:46 -0400 (EDT)
- Organization: Uni Leipzig
- References: <d2ofiu$fku$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
a) NSolve[] is for algebraic equations, use
FindRoot[] instead
b)
intf[x_?NumericQ] := NIntegrate[s*x, {s, 1, 10},
AccuracyGoal -> 6]
FindRoot[intf[x] == 16, {x, 0, 1}]
Regards
Jens
<isolanoster at gmail.com> schrieb im Newsbeitrag
news:d2ofiu$fku$1 at smc.vnet.net...
> Hi all,
>
> I need to numerically solve an equation
> involving an integral. I'm
> currently doing the following:
>
> NSolve[NIntegrate[ f[s, x] , {s, 1, 10}] == 0,
> x ] (*)
>
> where f[s, x] is a function that can be only be
> numerically integrated
> with respect to s.
>
> The problem with (*) is that NSolve does not
> pass the numerical value
> of x to NIntegrate. What is the best way to
> solve the problem?
>
> Thank you!
>
> David
>