<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, work around for a problem in dsolve, numeric?</title>
    <link>http://www.mapleprimes.com/questions/43618-Work-Around-For-A-Problem-In-Dsolve-Numeric</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 20:05:53 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 20:05:53 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, work around for a problem in dsolve, numeric?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, work around for a problem in dsolve, numeric?</title>
      <link>http://www.mapleprimes.com/questions/43618-Work-Around-For-A-Problem-In-Dsolve-Numeric</link>
    </image>
    <item>
      <title>A workaround</title>
      <link>http://www.mapleprimes.com/questions/43618-Work-Around-For-A-Problem-In-Dsolve-Numeric?ref=Feed:MaplePrimes:work around for a problem in dsolve, numeric?:Comments#answer80594</link>
      <itunes:summary>Here is a workaround, &lt;pre&gt;k[0]:=t-&gt;(1+t)*t^2*cos(t);

sol1:=dsolve({diff(y(t),t)=-k[0](t-1),y(0)=k[0](0)},y(t),
numeric, output=listprocedure):

k[1]:=rhs(sol1[2]):

k1:=t-&gt;k[1](t-1):

plot([[t,k[0](t),t=-1..0],[t,k[1](t),t=0..1]],color=blue);

sol2:=dsolve({diff(y(t),t)=-'k1'(t),y(1)=k[1](1)},y(t),
numeric, output=listprocedure):

k[2]:=rhs(sol2[2]):

plot([[t,k[0](t),t=-1..0],[t,k[1](t),t=0..1],
[t,k[2](t),t=1..2]],color=blue);&lt;/pre&gt;
</itunes:summary>
      <description>Here is a workaround, &lt;pre&gt;k[0]:=t-&gt;(1+t)*t^2*cos(t);

sol1:=dsolve({diff(y(t),t)=-k[0](t-1),y(0)=k[0](0)},y(t),
numeric, output=listprocedure):

k[1]:=rhs(sol1[2]):

k1:=t-&gt;k[1](t-1):

plot([[t,k[0](t),t=-1..0],[t,k[1](t),t=0..1]],color=blue);

sol2:=dsolve({diff(y(t),t)=-'k1'(t),y(1)=k[1](1)},y(t),
numeric, output=listprocedure):

k[2]:=rhs(sol2[2]):

plot([[t,k[0](t),t=-1..0],[t,k[1](t),t=0..1],
[t,k[2](t),t=1..2]],color=blue);&lt;/pre&gt;
</description>
      <guid>80594</guid>
      <pubDate>Sun, 11 Sep 2005 21:23:03 Z</pubDate>
      <itunes:author>alec</itunes:author>
      <author>alec</author>
    </item>
    <item>
      <title>Two more workarounds</title>
      <link>http://www.mapleprimes.com/questions/43618-Work-Around-For-A-Problem-In-Dsolve-Numeric?ref=Feed:MaplePrimes:work around for a problem in dsolve, numeric?:Comments#answer80593</link>
      <itunes:summary>Also, it can be done by adding &lt;code&gt;known=k[1]&lt;/code&gt; in the dsolve command, i.e. changing the definition of &lt;code&gt;sol2&lt;/code&gt; in the original post to &lt;pre&gt;sol2:=dsolve({diff(y(t),t)=-k[1](t-1),y(1)=k[1](1)},y(t),
numeric, output=listprocedure,known=k[1]):&lt;/pre&gt; One more workaround is in replacing &lt;code&gt;k[1](t-1)&lt;/code&gt; in the same line with &lt;code&gt;'apply'(k[1],t-1)&lt;/code&gt;, i.e. define &lt;code&gt;sol2&lt;/code&gt; as &lt;pre&gt;sol2:=dsolve({diff(y(t),t)=-'apply'(k[1],t-1),y(1)=k[1](1)},y(t),
numeric, output=listprocedure);&lt;/pre&gt;
</itunes:summary>
      <description>Also, it can be done by adding &lt;code&gt;known=k[1]&lt;/code&gt; in the dsolve command, i.e. changing the definition of &lt;code&gt;sol2&lt;/code&gt; in the original post to &lt;pre&gt;sol2:=dsolve({diff(y(t),t)=-k[1](t-1),y(1)=k[1](1)},y(t),
numeric, output=listprocedure,known=k[1]):&lt;/pre&gt; One more workaround is in replacing &lt;code&gt;k[1](t-1)&lt;/code&gt; in the same line with &lt;code&gt;'apply'(k[1],t-1)&lt;/code&gt;, i.e. define &lt;code&gt;sol2&lt;/code&gt; as &lt;pre&gt;sol2:=dsolve({diff(y(t),t)=-'apply'(k[1],t-1),y(1)=k[1](1)},y(t),
numeric, output=listprocedure);&lt;/pre&gt;
</description>
      <guid>80593</guid>
      <pubDate>Mon, 12 Sep 2005 04:42:33 Z</pubDate>
      <itunes:author>alec</itunes:author>
      <author>alec</author>
    </item>
  </channel>
</rss>