MaplePrimes - Newest Questions and Posts
http://www.mapleprimes.com
en-us2020 Maplesoft, A Division of Waterloo Maple Inc.Maplesoft Document SystemSat, 18 Jan 2020 06:05:53 GMTSat, 18 Jan 2020 06:05:53 GMTThe latest questions and posts added to MaplePrimeshttp://www.mapleprimes.com/images/mapleprimeswhite.jpgMaplePrimes - Newest Questions and Posts
http://www.mapleprimes.com
How do I solve a Non-autonomous differential equation in Maple
https://www.mapleprimes.com/questions/228717-How-Do-I-Solve-A-Nonautonomous-Differential?ref=Feed:MaplePrimes:New%20Questions%20&%20Posts
<p>ODE := 2.56*(diff(x(t), t, t))+.32*(diff(x(t), t))+x(t)+0.5e-1*x(t)^3 = 2.5*sin(t)</p>
<p>a1 := 2.56; a2 := .32; a3 := 0.5e-1; B := sin(t)</p>
<p>dfieldplot([diff(x(t), t) = y(t), diff(y(t), t) = (B-a2*y(t)-x(t)-a3*x(t)^3)/a1], [x(t), y(t)], t = -2 .. 2, x = -1 .. 2, y = -1 .. 2, arrows = SLIM, color = black, dirfield = [10, 10])</p>
<p>Error, (in DEtools/dfieldplot) cannot produce plot, non-autonomous DE(s) require initial conditions.<br>
</p>
<p>ODE := 2.56*(diff(x(t), t, t))+.32*(diff(x(t), t))+x(t)+0.5e-1*x(t)^3 = 2.5*sin(t)</p>
<p>a1 := 2.56; a2 := .32; a3 := 0.5e-1; B := sin(t)</p>
<p>dfieldplot([diff(x(t), t) = y(t), diff(y(t), t) = (B-a2*y(t)-x(t)-a3*x(t)^3)/a1], [x(t), y(t)], t = -2 .. 2, x = -1 .. 2, y = -1 .. 2, arrows = SLIM, color = black, dirfield = [10, 10])</p>
<p>Error, (in DEtools/dfieldplot) cannot produce plot, non-autonomous DE(s) require initial conditions.<br />
</p>
228717Fri, 17 Jan 2020 20:35:08 ZTianyuChengTianyuChengHow do I add a title to a plot quickly
https://www.mapleprimes.com/questions/228716-How-Do-I-Add-A-Title-To-A--Plot-Quickly?ref=Feed:MaplePrimes:New%20Questions%20&%20Posts
<p>I frequently title my plots to identify what is being plotted. Very often that means specifying a parameter. For example, I might want the title to read; <strong>Exponential when the power is c</strong>.</p>
<p>In the above I want to replace <strong>c</strong> with a real number. For example, my command might read<br>
<br>
> for c from 1 to 10 do<br>
p||c := plot( x^c, x= -1..1, title= the power is c )<br>
end do:<br>
<br>
I can then display the sequence of plots nicely labelled.</p>
<p>That does not work.</p>
<p> </p>
<p>I cannot find adequate info about what follows <strong>title =</strong> in the help pages or the manual so I end up creating a worksheet and experimenting for quite a while until I find something that works.<br>
(The Help page says: “The value t can be an arbitrary expression.” That’s it. One can go to the typesetting page to get more info about captions which is probably relevant but it begins to feel like learning about sex by looking up words in the dictionary.</p>
<p><br>
BTW, I have been using Maple for 18+ years so I should have a cheat sheet somewhere to remind me of the correct syntax but I am suggesting that Maple would be much more user friendly if this info was in the help pages.</p>
<p>It would be very nice to have a fuller explanation with more examples.</p>
<p>Here is what works:</p>
<p><br>
c:=3; # special case</p>
<p> </p>
<p>plot(x^c, x=-1..1,title=`power is `|| c); Why back quotes?</p>
<p>or</p>
<p>cc:=convert(c,string);<br>
plot(x^c,x=-1..1,title=[`power is `||cc]); why barckets?</p>
<p>or not as nice<br>
plot(x^c,x=-1..1,title=power.is.cc); why dots?</p>
<p>or if you get rid of the is<br>
plot(x^c,x=-1..1,title=[power = c]); why noy use is?</p>
<p> </p>
<p>not as nice<br>
plot(x^c,x=-1..1,title=[power = cc]); ugly quote marks</p>
<p> </p>
<p>Here is a list of failures in this very simple case:</p>
<p> </p>
<p>c:=3;</p>
<p> </p>
<p>plot(x^c,x=-1..1,title="power is c");</p>
<p> </p>
<p>plot(x^c,x=-1..1,title=power is c);</p>
<p> </p>
<p> </p>
<p>cc:="c";plot(x^c,x=-1..1,title="power is cc");<br>
or</p>
<p>plot(x^c,x=-1..1,title=power is cc);</p>
<p><br>
plot(x^c,x=-1..1,title=power.is.cc);</p>
<p> </p>
<p>cc:=convert(c,string);plot(x^c,x=-1..1,title="power is cc");</p>
<p> </p>
<p>cc:=convert(c,string);plot(x^c,x=-1..1,title="power is cc");</p>
<p> </p>
<p>plot(x^c,x=-1..1,title='power is cc');</p>
<p> </p>
<p>plot(x^c,x=-1..1,title=[power, is, cc]);</p>
<p> </p>
<p>plot(x^c,x=-1..1,title='power = cc');</p>
<p> </p>
<p>plot(x^c,x=-1..1,title=power = cc); but plot(x^2,x=-1..1,title=[power = cc]);is acceptable</p>
<p>another couple of failures:</p>
<p>plot(x^c,x=-1..1,title=[`power is c`]);</p>
<p> </p>
<p>plot(x^c,x=-1..1,title=[`power is cc`]);</p>
<p> </p>
<p> </p>
<p>I frequently title my plots to identify what is being plotted. Very often that means specifying a parameter. For example, I might want the title to read; <strong>Exponential when the power is c</strong>.</p>
<p>In the above I want to replace <strong>c</strong> with a real number. For example, my command might read<br />
<br />
> for c from 1 to 10 do<br />
p||c := plot( x^c, x= -1..1, title= the power is c )<br />
end do:<br />
<br />
I can then display the sequence of plots nicely labelled.</p>
<p>That does not work.</p>
<p> </p>
<p>I cannot find adequate info about what follows <strong>title =</strong> in the help pages or the manual so I end up creating a worksheet and experimenting for quite a while until I find something that works.<br />
(The Help page says: “The value t can be an arbitrary expression.” That’s it. One can go to the typesetting page to get more info about captions which is probably relevant but it begins to feel like learning about sex by looking up words in the dictionary.</p>
<p><br />
BTW, I have been using Maple for 18+ years so I should have a cheat sheet somewhere to remind me of the correct syntax but I am suggesting that Maple would be much more user friendly if this info was in the help pages.</p>
<p>It would be very nice to have a fuller explanation with more examples.</p>
<p>Here is what works:</p>
<p><br />
c:=3; # special case</p>
<p> </p>
<p>plot(x^c, x=-1..1,title=`power is `|| c); Why back quotes?</p>
<p>or</p>
<p>cc:=convert(c,string);<br />
plot(x^c,x=-1..1,title=[`power is `||cc]); why barckets?</p>
<p>or not as nice<br />
plot(x^c,x=-1..1,title=power.is.cc); why dots?</p>
<p>or if you get rid of the is<br />
plot(x^c,x=-1..1,title=[power = c]); why noy use is?</p>
<p> </p>
<p>not as nice<br />
plot(x^c,x=-1..1,title=[power = cc]); ugly quote marks</p>
<p> </p>
<p>Here is a list of failures in this very simple case:</p>
<p> </p>
<p>c:=3;</p>
<p> </p>
<p>plot(x^c,x=-1..1,title="power is c");</p>
<p> </p>
<p>plot(x^c,x=-1..1,title=power is c);</p>
<p> </p>
<p> </p>
<p>cc:="c";plot(x^c,x=-1..1,title="power is cc");<br />
or</p>
<p>plot(x^c,x=-1..1,title=power is cc);</p>
<p><br />
plot(x^c,x=-1..1,title=power.is.cc);</p>
<p> </p>
<p>cc:=convert(c,string);plot(x^c,x=-1..1,title="power is cc");</p>
<p> </p>
<p>cc:=convert(c,string);plot(x^c,x=-1..1,title="power is cc");</p>
<p> </p>
<p>plot(x^c,x=-1..1,title='power is cc');</p>
<p> </p>
<p>plot(x^c,x=-1..1,title=[power, is, cc]);</p>
<p> </p>
<p>plot(x^c,x=-1..1,title='power = cc');</p>
<p> </p>
<p>plot(x^c,x=-1..1,title=power = cc); but plot(x^2,x=-1..1,title=[power = cc]);is acceptable</p>
<p>another couple of failures:</p>
<p>plot(x^c,x=-1..1,title=[`power is c`]);</p>
<p> </p>
<p>plot(x^c,x=-1..1,title=[`power is cc`]);</p>
<p> </p>
<p> </p>
228716Fri, 17 Jan 2020 20:23:45 ZawassawassHow to define differential forms as function of some variables ?
https://www.mapleprimes.com/questions/228715-How-To-Define-Differential-Forms-As?ref=Feed:MaplePrimes:New%20Questions%20&%20Posts
<p>I want to define the co-ordianates (phi, PI, ....) as functions of some variable eg:- x,y.</p>
<p> </p>
<p><img src="/view.aspx?sf=228715_question/Capture.PNG"></p>
<p>I want to define the co-ordianates (phi, PI, ....) as functions of some variable eg:- x,y.</p>
<p> </p>
<p><img src="/view.aspx?sf=228715_question/Capture.PNG"></p>
228715Fri, 17 Jan 2020 19:06:09 ZLong waittime when going between output and executable lines.
https://www.mapleprimes.com/questions/228714-Long-Waittime-When-Going-Between-Output?ref=Feed:MaplePrimes:New%20Questions%20&%20Posts
<p>Hi everyone,</p>
<p>When my cursor is on an output, the paragraph style changes to <em>2D Output</em>, as it most likely should. When I then go to a new executable line, it takes forever for all of my expressions to "light up" (meaning that it takes a while for me to be able to use them), and it takes forever for the paragraph to go from <em>2D Output </em>to <em>2D Math</em>.</p>
<p>I sadly don't remember when this happened, or what might have caused it, but if any of have any suggestions or answers, I'd greatly appreciate it.</p>
<p> </p>
<p>Thanks for listening,</p>
<p>A confused highschool student.</p>
<p>Hi everyone,</p>
<p>When my cursor is on an output, the paragraph style changes to <em>2D Output</em>, as it most likely should. When I then go to a new executable line, it takes forever for all of my expressions to "light up" (meaning that it takes a while for me to be able to use them), and it takes forever for the paragraph to go from <em>2D Output </em>to <em>2D Math</em>.</p>
<p>I sadly don't remember when this happened, or what might have caused it, but if any of have any suggestions or answers, I'd greatly appreciate it.</p>
<p> </p>
<p>Thanks for listening,</p>
<p>A confused highschool student.</p>
228714Fri, 17 Jan 2020 17:06:43 ZbarxquebarxquePlot Numerical-Integration for function in two variables
https://www.mapleprimes.com/questions/228713-Plot-NumericalIntegration-For-Function?ref=Feed:MaplePrimes:New%20Questions%20&%20Posts
<p>,Hello dears</p>
<p>I have the following function</p>
<p><a href="/ViewTemp.ashx?f=130655_1579261908/123.jpg"><img src="/ViewTemp.ashx?f=130655_1579261908/123.jpg"></a></p>
<p>where L=10 and I want to plot this function, so I use </p>
<p><a href="/ViewTemp.ashx?f=130655_1579261908/456.jpg"><img src="/ViewTemp.ashx?f=130655_1579261908/456.jpg"></a></p>
<p>But it does not work.</p>
<p>Is there any help.</p>
<p>Amr</p>
<p>,Hello dears</p>
<p>I have the following function</p>
<p><img src="/ViewTemp.ashx?f=130655_1579261908/123.jpg"></p>
<p>where L=10 and I want to plot this function, so I use </p>
<p><img src="/ViewTemp.ashx?f=130655_1579261908/456.jpg"></p>
<p>But it does not work.</p>
<p>Is there any help.</p>
<p>Amr</p>
228713Fri, 17 Jan 2020 13:51:03 ZamrramadanegamrramadanegHow can I solve the following differential equation in Maple?
https://www.mapleprimes.com/questions/228712-How-Can-I-Solve-The-Following-Differential?ref=Feed:MaplePrimes:New%20Questions%20&%20Posts
<p>Hello, <br>
Im beginner in Maple so i need a help with the following differential equation:<br>
<strong>y'' - y = 0 where y(0) = 0 and y(1) = 1</strong></p>
<p>I solved this but im confused how can i solve it in Maple.</p>
<p>Thank you in advance.</p>
<p> </p>
<p>Hello, <br />
Im beginner in Maple so i need a help with the following differential equation:<br />
<strong>y'' - y = 0 where y(0) = 0 and y(1) = 1</strong></p>
<p>I solved this but im confused how can i solve it in Maple.</p>
<p>Thank you in advance.</p>
<p> </p>
228712Fri, 17 Jan 2020 13:48:25 ZMeldaMelda