MathGroup Archive 2004

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

Search the Archive

Re: definite integral


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.


  • Prev by Date: How to extract a solution from Mathematica's answer to "Solve"
  • Next by Date: Re: Tr vs Total
  • Previous by thread: Re: definite integral
  • Next by thread: Re: definite integral