Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: ode with definite integral
Date: Thu, 30 Jun 2011 07:44:10 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 27
Message-ID: <iuh9ga$mua$1@newscl01ah.mathworks.com>
References: <iuh6ma$ggi$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1309419850 23498 172.30.248.35 (30 Jun 2011 07:44:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 30 Jun 2011 07:44:10 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:734288

"Grzegorz Knor" wrote in message <iuh6ma$ggi$1@newscl01ah.mathworks.com>...
> Hello,
> I wonder how to solve such a task:
> Suppose we want to solve a differential equation in the form:
> dy/dt = f(t) = exp(-te)
> where:
> te = \int from 0 to t (2^(y/10)) dt
> Is it possible to do it with Matlab ode solvers?
>
> Best regards
> Grzegorz
- - - - - - - - -
Yes, that can easily be done with an ode solver.  Define

te(t) = int('2^(y(s)/10)','s',0,t)

Then we have

dte(t)/dt = 2^(y(t)/10)

and

dy(t)/dt = exp(-te(t))

so this is in the proper form to be solved with an ode solver.  You must of course arrange that te(0) = 0.  The initial value, y(0), is up to you.

Roger Stafford