MathGroup Archive 2005

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

Search the Archive

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
> 



  • Prev by Date: Re: Use of mathlink in C++
  • Next by Date: Re: Front End Memory usage while exporting many graphics
  • Previous by thread: Re: NSolve an equation involving NIntegrate
  • Next by thread: MultipleListPlot Prolem