<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Can I make variables appear in DSolve numeric output</title>
    <link>http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 10:19:47 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 10:19:47 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Can I make variables appear in DSolve numeric output</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Can I make variables appear in DSolve numeric output</title>
      <link>http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve</link>
    </image>
    <item>
      <title>Parameters option</title>
      <link>http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve?ref=Feed:MaplePrimes:Can I make variables appear in DSolve numeric output:Comments#answer140510</link>
      <itunes:summary>&lt;p&gt;Will this do what you want:&lt;/p&gt;
&lt;p&gt;dsol := dsolve({eq1, eq2, x(0) = 0, y(0) = 0, D(x)(0) = Vx,D(y)(0) = Vy}, numeric, output = listprocedure,parameters=[Vx,Vy]);&lt;br&gt;X,Y:=op(subs(dsol,[x(t),y(t)]));&lt;br&gt;Xp:=proc(t,V,theta) &lt;br&gt;if not type([t,V,theta],list(realcons)) then return 'procname(_passed)' end if;&lt;br&gt;dsol(parameters=[V*cos(theta),V*sin(theta)]);&lt;br&gt;X(t)&lt;br&gt;end proc;&lt;br&gt;#And similarly you can define Yp if desired.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Will this do what you want:&lt;/p&gt;
&lt;p&gt;dsol := dsolve({eq1, eq2, x(0) = 0, y(0) = 0, D(x)(0) = Vx,D(y)(0) = Vy}, numeric, output = listprocedure,parameters=[Vx,Vy]);&lt;br&gt;X,Y:=op(subs(dsol,[x(t),y(t)]));&lt;br&gt;Xp:=proc(t,V,theta) &lt;br&gt;if not type([t,V,theta],list(realcons)) then return 'procname(_passed)' end if;&lt;br&gt;dsol(parameters=[V*cos(theta),V*sin(theta)]);&lt;br&gt;X(t)&lt;br&gt;end proc;&lt;br&gt;#And similarly you can define Yp if desired.&lt;/p&gt;</description>
      <guid>140510</guid>
      <pubDate>Sun, 18 Nov 2012 20:24:32 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>constants et al</title>
      <link>http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve?ref=Feed:MaplePrimes:Can I make variables appear in DSolve numeric output:Comments#answer140656</link>
      <itunes:summary>&lt;p&gt;That solves it!&lt;/p&gt;
&lt;p&gt;The enclosed&amp;nbsp;worksheet is my interpretation of the physical problem. &lt;a href="/view.aspx?sf=140656/448393/DROPvLEAP.mw"&gt;DROPvLEAP.mw&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'm not sure how you got&amp;nbsp;k=Pi*27/1625/2.&amp;nbsp;I stuffed up one of my parameters in the original dt, but i have corrected it so now your dt is closer to my dt.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;That solves it!&lt;/p&gt;
&lt;p&gt;The enclosed&amp;nbsp;worksheet is my interpretation of the physical problem. &lt;a href="/view.aspx?sf=140656/448393/DROPvLEAP.mw"&gt;DROPvLEAP.mw&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'm not sure how you got&amp;nbsp;k=Pi*27/1625/2.&amp;nbsp;I stuffed up one of my parameters in the original dt, but i have corrected it so now your dt is closer to my dt.&lt;/p&gt;</description>
      <guid>140656</guid>
      <pubDate>Wed, 21 Nov 2012 18:25:30 Z</pubDate>
      <itunes:author>brian bovril</itunes:author>
      <author>brian bovril</author>
    </item>
    <item>
      <title>Direct Seach with parameters</title>
      <link>http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve?ref=Feed:MaplePrimes:Can I make variables appear in DSolve numeric output:Comments#comment140521</link>
      <itunes:summary>&lt;p&gt;&lt;a href="/view.aspx?sf=140521/448183/numeric_de_code3.mw"&gt;numeric_de_code3.mw&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thankyou Sir, for the code. it answers my initial Q.&lt;/p&gt;
&lt;p&gt;But now I have another problem. I'm trying to optimize V and theta ST constraints (eq=0, horizontal distance travelled&amp;gt;=60) using Direct Search and i've had difficulties.&amp;nbsp;(after output 26).&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="/view.aspx?sf=140521/448183/numeric_de_code3.mw"&gt;numeric_de_code3.mw&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thankyou Sir, for the code. it answers my initial Q.&lt;/p&gt;
&lt;p&gt;But now I have another problem. I'm trying to optimize V and theta ST constraints (eq=0, horizontal distance travelled&amp;gt;=60) using Direct Search and i've had difficulties.&amp;nbsp;(after output 26).&amp;nbsp;&lt;/p&gt;</description>
      <guid>140521</guid>
      <pubDate>Mon, 19 Nov 2012 18:09:36 Z</pubDate>
      <itunes:author>brian bovril</itunes:author>
      <author>brian bovril</author>
    </item>
    <item>
      <title>implicitplot</title>
      <link>http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve?ref=Feed:MaplePrimes:Can I make variables appear in DSolve numeric output:Comments#comment140531</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve#comment140521"&gt;@brian bovril&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don't know where the expression dt came from, nevertheless I tried the following.&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;eq1 := diff(y(t), t, t) = -49/5-0.1350000000e-2*Pi*sqrt((diff(x(t), t))^2+(diff(y(t), t))^2)*diff(y(t), t);&lt;br&gt;eq2 := diff(x(t), t, t) = -0.1350000000e-2*Pi*sqrt((diff(x(t), t))^2+(diff(y(t), t))^2)*diff(x(t), t);&lt;br&gt;dsol := dsolve({eq1, eq2, x(0) = 0, y(0) = 0, D(x)(0) = V*cos(theta),D(y)(0) = V*sin(theta)}, numeric, output = listprocedure,parameters=[V,theta]);&lt;br&gt;#The version above didn't work in Maple 12, which I used for my original answer, but it works in Maple 16.&lt;br&gt;X,Y:=op(subs(dsol,[x(t),y(t)]));&lt;br&gt;dt := -(25/126)*ln(-(-2+exp(-(324/1625)*Pi+(27/1625)*Pi*yp)+2*sqrt(1-exp(-(324/1625)*Pi+(27/1625)*Pi*yp)))/exp(-(324/1625)*Pi+(27/1625)*Pi*yp))*sqrt(78)/sqrt(Pi);&lt;br&gt;x0 := 45:&lt;br&gt;EQ:=proc(V,theta) local tp,drpt; &lt;br&gt;&amp;nbsp;&amp;nbsp; if not type([V,theta],list(realcons)) then return 'procname(_passed)' end if;&lt;br&gt;&amp;nbsp;&amp;nbsp; dsol(parameters=[V,theta]);&lt;br&gt;&amp;nbsp;&amp;nbsp; tp:=fsolve(X(t) = x0, t);&lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(tp,numeric) then return undefined end if;&lt;br&gt;&amp;nbsp;&amp;nbsp; drpt := evalf(eval(dt,yp = Y(tp)));&lt;br&gt;&amp;nbsp;&amp;nbsp; tp-drpt&lt;br&gt;end proc:&lt;br&gt;EQ(25,1.3);&lt;br&gt;plots:-implicitplot(EQ(V,theta),V=0..50,theta=0..Pi/2);&lt;br&gt;th:=fsolve(EQ(40,theta)=0,theta=0.2..0.3);&lt;br&gt;dsol(parameters=[40,th]):&lt;br&gt;plots:-odeplot(dsol,[x(t),y(t)],t=0..2);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve#comment140521"&gt;@brian bovril&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don't know where the expression dt came from, nevertheless I tried the following.&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;eq1 := diff(y(t), t, t) = -49/5-0.1350000000e-2*Pi*sqrt((diff(x(t), t))^2+(diff(y(t), t))^2)*diff(y(t), t);&lt;br&gt;eq2 := diff(x(t), t, t) = -0.1350000000e-2*Pi*sqrt((diff(x(t), t))^2+(diff(y(t), t))^2)*diff(x(t), t);&lt;br&gt;dsol := dsolve({eq1, eq2, x(0) = 0, y(0) = 0, D(x)(0) = V*cos(theta),D(y)(0) = V*sin(theta)}, numeric, output = listprocedure,parameters=[V,theta]);&lt;br&gt;#The version above didn't work in Maple 12, which I used for my original answer, but it works in Maple 16.&lt;br&gt;X,Y:=op(subs(dsol,[x(t),y(t)]));&lt;br&gt;dt := -(25/126)*ln(-(-2+exp(-(324/1625)*Pi+(27/1625)*Pi*yp)+2*sqrt(1-exp(-(324/1625)*Pi+(27/1625)*Pi*yp)))/exp(-(324/1625)*Pi+(27/1625)*Pi*yp))*sqrt(78)/sqrt(Pi);&lt;br&gt;x0 := 45:&lt;br&gt;EQ:=proc(V,theta) local tp,drpt; &lt;br&gt;&amp;nbsp;&amp;nbsp; if not type([V,theta],list(realcons)) then return 'procname(_passed)' end if;&lt;br&gt;&amp;nbsp;&amp;nbsp; dsol(parameters=[V,theta]);&lt;br&gt;&amp;nbsp;&amp;nbsp; tp:=fsolve(X(t) = x0, t);&lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(tp,numeric) then return undefined end if;&lt;br&gt;&amp;nbsp;&amp;nbsp; drpt := evalf(eval(dt,yp = Y(tp)));&lt;br&gt;&amp;nbsp;&amp;nbsp; tp-drpt&lt;br&gt;end proc:&lt;br&gt;EQ(25,1.3);&lt;br&gt;plots:-implicitplot(EQ(V,theta),V=0..50,theta=0..Pi/2);&lt;br&gt;th:=fsolve(EQ(40,theta)=0,theta=0.2..0.3);&lt;br&gt;dsol(parameters=[40,th]):&lt;br&gt;plots:-odeplot(dsol,[x(t),y(t)],t=0..2);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>140531</guid>
      <pubDate>Mon, 19 Nov 2012 22:15:12 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>parameters in de</title>
      <link>http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve?ref=Feed:MaplePrimes:Can I make variables appear in DSolve numeric output:Comments#comment140578</link>
      <itunes:summary>&lt;p&gt;thanks for that.&lt;/p&gt;
&lt;p&gt;it seems you supply a value for V (in this case 40) and it calculates theta. i really wanted the optimal V and theta but thats alright. explaining myself is not easy.&lt;/p&gt;
&lt;p&gt;dt is dropping time for a coconut. its based on this problem but&amp;nbsp;factoring in&amp;nbsp;air resistance for monkey and coconut.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=MathApps/TheMonkeyAndTheCoconut"&gt;http://www.maplesoft.com/support/help/Maple/view.aspx?path=MathApps/TheMonkeyAndTheCoconut&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;as you can see you can modify the angle and the speed. and if its not fast enough she'll fall in the river!&lt;/p&gt;
&lt;p&gt;If I were the monkey, I would just climb the tree and get it, that&amp;rsquo;s what monkeys are good at! My monkey is highly athletic,&amp;nbsp;jumping 60 m!!! . and&amp;nbsp;it travels at 150km/hr!&amp;nbsp; Anyway to do otherwise would spoil the maths.&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;thanks for that.&lt;/p&gt;
&lt;p&gt;it seems you supply a value for V (in this case 40) and it calculates theta. i really wanted the optimal V and theta but thats alright. explaining myself is not easy.&lt;/p&gt;
&lt;p&gt;dt is dropping time for a coconut. its based on this problem but&amp;nbsp;factoring in&amp;nbsp;air resistance for monkey and coconut.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=MathApps/TheMonkeyAndTheCoconut"&gt;http://www.maplesoft.com/support/help/Maple/view.aspx?path=MathApps/TheMonkeyAndTheCoconut&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;as you can see you can modify the angle and the speed. and if its not fast enough she'll fall in the river!&lt;/p&gt;
&lt;p&gt;If I were the monkey, I would just climb the tree and get it, that&amp;rsquo;s what monkeys are good at! My monkey is highly athletic,&amp;nbsp;jumping 60 m!!! . and&amp;nbsp;it travels at 150km/hr!&amp;nbsp; Anyway to do otherwise would spoil the maths.&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>140578</guid>
      <pubDate>Tue, 20 Nov 2012 18:09:11 Z</pubDate>
      <itunes:author>brian bovril</itunes:author>
      <author>brian bovril</author>
    </item>
    <item>
      <title>Worksheet</title>
      <link>http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve?ref=Feed:MaplePrimes:Can I make variables appear in DSolve numeric output:Comments#comment140619</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve#comment140578"&gt;@brian bovril&lt;/a&gt; Thanks for the reference. I have uploaded a worksheet. It doesn't use the parameters option in dsolve/numeric, since I seem to be getting inconsistent results using that option in this problem. At this point I don't understand why results are inconsistent.&lt;/p&gt;
&lt;p&gt;'implicitplot' takes much longer, but plotting is just used for guidance.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=140619/448319/MonkeyAndCoconut.mw"&gt;MonkeyAndCoconut.mw&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Addendum:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The inconsistency results in the parameters version apparently is due to fsolve remembering results.&lt;/p&gt;
&lt;p&gt;Below the problem is shown (in p1) together with two solutions to the problem (p2 and p3).&lt;/p&gt;
&lt;p&gt;But first the simple problem is solved analytically.&lt;/p&gt;
&lt;p&gt;In p2 X is a local variable, in p3 X is global, but the statement forget(fsolve); is inserted before fsolve gets to work.&lt;/p&gt;
&lt;p&gt;The parameters version will work fine also for the the original problem e.g. by inserting the statement forget(fsolve); as below in p3.&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;eq := diff(x(t), t) = a*x(t);&lt;br&gt;dsolve({eq, x(0) = 1});&lt;br&gt;solve(rhs(%)=2,t);&lt;br&gt;#############################################&lt;br&gt;restart;&lt;br&gt;eq := diff(x(t), t) = a*x(t);&lt;br&gt;dsol := dsolve({eq, x(0) = 1}, numeric, output = listprocedure,parameters=[a]);&lt;br&gt;X:=subs(dsol,x(t));&lt;br&gt;p1:=proc(a) local tp; &lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(a,realcons) then return 'procname(_passed)' end if;&lt;br&gt;&amp;nbsp;&amp;nbsp; dsol(parameters=[a]);&lt;br&gt;&amp;nbsp;&amp;nbsp; tp:=fsolve(X(t) = 2, t);&lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(tp,numeric) then undefined else tp end if&lt;br&gt;&amp;nbsp;end proc:&lt;br&gt;plot(p1(a),a=0..50);&lt;br&gt;p1(10);&lt;br&gt;p1(200);&lt;br&gt;#############################################&lt;br&gt;restart;&lt;br&gt;eq := diff(x(t), t) = a*x(t);&lt;br&gt;dsol := dsolve({eq, x(0) = 1}, numeric, output = listprocedure,parameters=[a]);&lt;br&gt;p2:=proc(a) local tp,X; &lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(a,realcons) then return 'procname(_passed)' end if;&lt;br&gt;&amp;nbsp;&amp;nbsp; dsol(parameters=[a]);&lt;br&gt;&amp;nbsp;&amp;nbsp; X:=subs(dsol,x(t));&lt;br&gt;&amp;nbsp;&amp;nbsp; tp:=fsolve(X(t) = 2, t);&lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(tp,numeric) then undefined else tp end if&lt;br&gt;&amp;nbsp;end proc:&lt;br&gt;plot(p2(a),a=0..50);&lt;br&gt;p2(10);&lt;br&gt;p2(200);&lt;br&gt;restart;&lt;br&gt;eq := diff(x(t), t) = a*x(t);&lt;br&gt;dsol := dsolve({eq, x(0) = 1}, numeric, output = listprocedure,parameters=[a]);&lt;br&gt;X:=subs(dsol,x(t));&lt;br&gt;p3:=proc(a) local tp; &lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(a,realcons) then return 'procname(_passed)' end if;&lt;br&gt;&amp;nbsp;&amp;nbsp; dsol(parameters=[a]);&lt;br&gt;&amp;nbsp;&amp;nbsp; forget(fsolve); &lt;br&gt;&amp;nbsp;&amp;nbsp; tp:=fsolve(X(t) = 2, t);&lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(tp,numeric) then undefined else tp end if&lt;br&gt;&amp;nbsp;end proc:&lt;br&gt;plot(p3(a),a=0..50);&lt;br&gt;p3(10);&lt;br&gt;p3(200);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/140504-Can-I-Make-Variables-Appear-In-DSolve#comment140578"&gt;@brian bovril&lt;/a&gt; Thanks for the reference. I have uploaded a worksheet. It doesn't use the parameters option in dsolve/numeric, since I seem to be getting inconsistent results using that option in this problem. At this point I don't understand why results are inconsistent.&lt;/p&gt;
&lt;p&gt;'implicitplot' takes much longer, but plotting is just used for guidance.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=140619/448319/MonkeyAndCoconut.mw"&gt;MonkeyAndCoconut.mw&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Addendum:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The inconsistency results in the parameters version apparently is due to fsolve remembering results.&lt;/p&gt;
&lt;p&gt;Below the problem is shown (in p1) together with two solutions to the problem (p2 and p3).&lt;/p&gt;
&lt;p&gt;But first the simple problem is solved analytically.&lt;/p&gt;
&lt;p&gt;In p2 X is a local variable, in p3 X is global, but the statement forget(fsolve); is inserted before fsolve gets to work.&lt;/p&gt;
&lt;p&gt;The parameters version will work fine also for the the original problem e.g. by inserting the statement forget(fsolve); as below in p3.&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;eq := diff(x(t), t) = a*x(t);&lt;br&gt;dsolve({eq, x(0) = 1});&lt;br&gt;solve(rhs(%)=2,t);&lt;br&gt;#############################################&lt;br&gt;restart;&lt;br&gt;eq := diff(x(t), t) = a*x(t);&lt;br&gt;dsol := dsolve({eq, x(0) = 1}, numeric, output = listprocedure,parameters=[a]);&lt;br&gt;X:=subs(dsol,x(t));&lt;br&gt;p1:=proc(a) local tp; &lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(a,realcons) then return 'procname(_passed)' end if;&lt;br&gt;&amp;nbsp;&amp;nbsp; dsol(parameters=[a]);&lt;br&gt;&amp;nbsp;&amp;nbsp; tp:=fsolve(X(t) = 2, t);&lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(tp,numeric) then undefined else tp end if&lt;br&gt;&amp;nbsp;end proc:&lt;br&gt;plot(p1(a),a=0..50);&lt;br&gt;p1(10);&lt;br&gt;p1(200);&lt;br&gt;#############################################&lt;br&gt;restart;&lt;br&gt;eq := diff(x(t), t) = a*x(t);&lt;br&gt;dsol := dsolve({eq, x(0) = 1}, numeric, output = listprocedure,parameters=[a]);&lt;br&gt;p2:=proc(a) local tp,X; &lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(a,realcons) then return 'procname(_passed)' end if;&lt;br&gt;&amp;nbsp;&amp;nbsp; dsol(parameters=[a]);&lt;br&gt;&amp;nbsp;&amp;nbsp; X:=subs(dsol,x(t));&lt;br&gt;&amp;nbsp;&amp;nbsp; tp:=fsolve(X(t) = 2, t);&lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(tp,numeric) then undefined else tp end if&lt;br&gt;&amp;nbsp;end proc:&lt;br&gt;plot(p2(a),a=0..50);&lt;br&gt;p2(10);&lt;br&gt;p2(200);&lt;br&gt;restart;&lt;br&gt;eq := diff(x(t), t) = a*x(t);&lt;br&gt;dsol := dsolve({eq, x(0) = 1}, numeric, output = listprocedure,parameters=[a]);&lt;br&gt;X:=subs(dsol,x(t));&lt;br&gt;p3:=proc(a) local tp; &lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(a,realcons) then return 'procname(_passed)' end if;&lt;br&gt;&amp;nbsp;&amp;nbsp; dsol(parameters=[a]);&lt;br&gt;&amp;nbsp;&amp;nbsp; forget(fsolve); &lt;br&gt;&amp;nbsp;&amp;nbsp; tp:=fsolve(X(t) = 2, t);&lt;br&gt;&amp;nbsp;&amp;nbsp; if not type(tp,numeric) then undefined else tp end if&lt;br&gt;&amp;nbsp;end proc:&lt;br&gt;plot(p3(a),a=0..50);&lt;br&gt;p3(10);&lt;br&gt;p3(200);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>140619</guid>
      <pubDate>Tue, 20 Nov 2012 22:38:52 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
  </channel>
</rss>