Re: definite integral
- To: mathgroup at smc.vnet.net
- Subject: [mg49357] Re: definite integral
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 16 Jul 2004 06:06:38 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <cd5ooi$b37$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
call NDSolve it with the additional equation
integralY'[t]==y[t], integralY[0]==0
and integralY[t] will return Integrate[y[tau],{tau,0,t}]
Regards
Jens
Josh wrote:
>
> from the solution of a system of 2 differential equations
>
> sol=NDSolve[{v'[t]==10^3*i[t],
> y'[t]== etc...
>
> I get the solution y[t] for t \in [0,1], and I can plot it with the command:
>
> Plot[Evaluate[y[t]/.sol],{t,0,0.5}, PlotRange->{-2,2}]
>
> but I have also to compute the definite integral of y[t], between 0 and
> 0.1, how can I do?
>
> Thanks, Josh.