MaplePrimes - Maple 2020 Posts and Questions
http://www.mapleprimes.com/products/Maple/Maple 2020
en-us2024 Maplesoft, A Division of Waterloo Maple Inc.Maplesoft Document SystemWed, 28 Feb 2024 19:30:00 GMTWed, 28 Feb 2024 19:30:00 GMTMaple 2020 Questions and Posts on MaplePrimeshttp://www.mapleprimes.com/images/mapleprimeswhite.jpgMaplePrimes - Maple 2020 Posts and Questions
http://www.mapleprimes.com/products/Maple/Maple 2020
some parameters not considered in final equation!!!
https://www.mapleprimes.com/questions/237882-Some-Parameters-Not-Considered-In-Final?ref=Feed:MaplePrimes:Version Maple 2020
<p>Hi.</p>
<p>why in eq1 some parameters such as beta 1, Q110,... are not placed (They defined before eq1 !!!!)</p>
<p>Thanks</p>
<p><a href="/view.aspx?sf=237882_question/TRASH.mw">TRASH.mw</a></p>
<p>Hi.</p>
<p>why in eq1 some parameters such as beta 1, Q110,... are not placed (They defined before eq1 !!!!)</p>
<p>Thanks</p>
<p><a href="/view.aspx?sf=237882_question/TRASH.mw">TRASH.mw</a></p>
237882Sun, 25 Feb 2024 19:45:43 ZNIMA112NIMA112add symbols(arrow)
https://www.mapleprimes.com/questions/237871-Add-Symbolsarrow?ref=Feed:MaplePrimes:Version Maple 2020
<p>hello,</p>
<p>How I can add symbols(arrow) in plotted graphs for functions psi[1] and psi[2] like the attached figure?</p>
<p>please see the attached figure.</p>
<p>Thanks so much,</p>
<p><a href="/view.aspx?sf=237871_question/line.mw">line.mw</a></p>
<p><img src="/view.aspx?sf=237871_question/figure_1.jpg"></p>
<p>hello,</p>
<p>How I can add symbols(arrow) in plotted graphs for functions psi[1] and psi[2] like the attached figure?</p>
<p>please see the attached figure.</p>
<p>Thanks so much,</p>
<p><a href="/view.aspx?sf=237871_question/line.mw">line.mw</a></p>
<p><img src="/view.aspx?sf=237871_question/figure_1.jpg"></p>
237871Fri, 23 Feb 2024 09:36:20 ZNIMA112NIMA112Maple 2020 Is Not Showing Current Files in Folders
https://www.mapleprimes.com/questions/237826-Maple-2020-Is-Not-Showing-Current-Files?ref=Feed:MaplePrimes:Version Maple 2020
<p>I'm running Maple 2020 on a Mac with OS 14.3.1. Maple is not seeing current files in folders, and when it saves files, it does so with an older date. In Settings, Maple has permission to access the Desktop, Documents, and Downloads folders, the only options that my Mac provides.</p>
<p>It's a bit frustrating. Any help would be appreciated.</p>
<p>I'm running Maple 2020 on a Mac with OS 14.3.1. Maple is not seeing current files in folders, and when it saves files, it does so with an older date. In Settings, Maple has permission to access the Desktop, Documents, and Downloads folders, the only options that my Mac provides.</p>
<p>It's a bit frustrating. Any help would be appreciated.</p>
237826Thu, 15 Feb 2024 02:23:58 ZPsiSquaredPsiSquaredHow do I create an animated plot of a 2-dimensional curve depending on two real parameters?
https://www.mapleprimes.com/questions/237722-How-Do-I-Create-An-Animated-Plot-Of?ref=Feed:MaplePrimes:Version Maple 2020
<p>Hey!</p>
<p>I am working on a 2-dimensional real curve gamma, that is being deformed by a real 2x2 matrix A and translated by some shift vector s. Both the matrix A and the vector s depend on two real parameters alpha and beta, which vary between 0 and 1. My goal is to create an animated plot that shows the curve depending on the parameters alpha and beta (ideally with some sort of slider, so I can play with different values of alpha and beta). I am having a hard time animating this, also because I am unsure if this is actually possible in Maple. The code I am working with is so far:</p>
<pre class="prettyprint">
with(plots);
with(LinearAlgebra);
f := x -> exp(2*I*Pi*x);
CDFT := Matrix(3, 3, [[1, 1, 1], [1, f(1/3), f(2/3)], [1, f(2/3), f(1/3)]]);
al := 10/100;
be := 10/100;
lam1 := f(al);
lam2 := f(be);
lam3 := f(-al - be);
coef := (1/3*HermitianTranspose(CDFT)) . (Vector[column](3, [lam3, lam2, lam1]));
a := coef[1];
b := coef[2];
c := coef[3];
gam := t -> MatrixVectorMultiply(Matrix(2, 2, [[Re(a^2 + b*c), -Im(a^2 - b*c)], [Im(a^2 + b*c), Re(a^2 - b*c)]]), Vector[column](2, [cos(2*t) - 2*cos(t), sin(2*t) + 2*sin(t)])) + 3*Vector[column](2, [Re(b*c), Im(b*c)]);
P1 := plot([cos(2*t) - 2*cos(t), sin(2*t) + 2*sin(t), t = 0 .. 2*Pi], color = [blue]);
P2 := plot([gam(t)[1], gam(t)[2], t = 0 .. 2*Pi], color = [purple]);
plots:-display([P1, P2]);
</pre>
<p>Note that you can basically ignore everything up to the definition of the curve gam (short for gamma), apart from the definition of the parameters al and be (alpha and beta). The plot P1 corresponds to the "unperturbed curve", i.e. when we multiply the curve by the identity, which happens for alpha=beta=0. The plot P2 is now the deformed curve. The output is then:</p>
<p><img src="/view.aspx?sf=237722_question/TraceParameterPlot.jpg"></p>
<p>My goal is now to animate this plot such that I can play with different values of alpha and beta, without having to manually insert them. How do I do this?</p>
<p>Hey!</p>
<p>I am working on a 2-dimensional real curve gamma, that is being deformed by a real 2x2 matrix A and translated by some shift vector s. Both the matrix A and the vector s depend on two real parameters alpha and beta, which vary between 0 and 1. My goal is to create an animated plot that shows the curve depending on the parameters alpha and beta (ideally with some sort of slider, so I can play with different values of alpha and beta). I am having a hard time animating this, also because I am unsure if this is actually possible in Maple. The code I am working with is so far:</p>
<pre class="prettyprint">
with(plots);
with(LinearAlgebra);
f := x -> exp(2*I*Pi*x);
CDFT := Matrix(3, 3, [[1, 1, 1], [1, f(1/3), f(2/3)], [1, f(2/3), f(1/3)]]);
al := 10/100;
be := 10/100;
lam1 := f(al);
lam2 := f(be);
lam3 := f(-al - be);
coef := (1/3*HermitianTranspose(CDFT)) . (Vector[column](3, [lam3, lam2, lam1]));
a := coef[1];
b := coef[2];
c := coef[3];
gam := t -> MatrixVectorMultiply(Matrix(2, 2, [[Re(a^2 + b*c), -Im(a^2 - b*c)], [Im(a^2 + b*c), Re(a^2 - b*c)]]), Vector[column](2, [cos(2*t) - 2*cos(t), sin(2*t) + 2*sin(t)])) + 3*Vector[column](2, [Re(b*c), Im(b*c)]);
P1 := plot([cos(2*t) - 2*cos(t), sin(2*t) + 2*sin(t), t = 0 .. 2*Pi], color = [blue]);
P2 := plot([gam(t)[1], gam(t)[2], t = 0 .. 2*Pi], color = [purple]);
plots:-display([P1, P2]);
</pre>
<p>Note that you can basically ignore everything up to the definition of the curve gam (short for gamma), apart from the definition of the parameters al and be (alpha and beta). The plot P1 corresponds to the "unperturbed curve", i.e. when we multiply the curve by the identity, which happens for alpha=beta=0. The plot P2 is now the deformed curve. The output is then:</p>
<p><img src="/view.aspx?sf=237722_question/TraceParameterPlot.jpg" /></p>
<p>My goal is now to animate this plot such that I can play with different values of alpha and beta, without having to manually insert them. How do I do this?</p>
237722Wed, 24 Jan 2024 13:50:25 ZAndreas132Andreas132How can the uploaded worksheet be modified to handle a self-propelled object on the carousel?
https://www.mapleprimes.com/questions/237714-How-Can-The-Uploaded-Worksheet-Be-Modified?ref=Feed:MaplePrimes:Version Maple 2020
<p>This worksheet animates the motion of an object (say, a cube which slides frictionlessly) on a rotating carousel. The cube is not self-propelled.</p>
<p>How can the worksheet be modified to handle the combination of the carousel motivated motion and the cube's own generated motion, caused by, say, by a few strategically placed thrusters?</p>
<p>The cube's own generated path could be a straight line, or a curve such as an ellipse. The cube's own motion could have a constant velocity or be accelerating.</p>
<p><a href="/view.aspx?sf=237714_question/Carousel_dynamics.mw">Carousel_dynamics.mw</a></p>
<p>This worksheet animates the motion of an object (say, a cube which slides frictionlessly) on a rotating carousel. The cube is not self-propelled.</p>
<p>How can the worksheet be modified to handle the combination of the carousel motivated motion and the cube's own generated motion, caused by, say, by a few strategically placed thrusters?</p>
<p>The cube's own generated path could be a straight line, or a curve such as an ellipse. The cube's own motion could have a constant velocity or be accelerating.</p>
<p><a href="/view.aspx?sf=237714_question/Carousel_dynamics.mw">Carousel_dynamics.mw</a></p>
237714Tue, 23 Jan 2024 19:58:24 ZEarlEarlMaple can't seem to handle summations of binomial distributions accurately
https://www.mapleprimes.com/questions/237712-Maple-Cant-Seem-To-Handle-Summations?ref=Feed:MaplePrimes:Version Maple 2020
<p>Maple seems to give me very inaccurate results for this computation, I'm wondering if this is a known issue and if there's a way to fix it? Worksheet:</p>
<p>Exact commands I ran:<br>
with(combinat):<br>
B := (n, i, p) -> binomial(n, i)*(p^i)*(1-p)^(n-i)/i;</p>
<p>F:=(n,p)->sum(B(n,i,p),i=1..n);<br>
F(2,1);</p>
<p>This outputs 0, when it should output 1/2. See image attached:</p>
<p> </p>
<p><img src="/view.aspx?sf=237712_question/mapleMadness.png"></p>
<p>Is there a fix for this?</p>
<p>Maple seems to give me very inaccurate results for this computation, I'm wondering if this is a known issue and if there's a way to fix it? Worksheet:</p>
<p>Exact commands I ran:<br>
with(combinat):<br>
B := (n, i, p) -> binomial(n, i)*(p^i)*(1-p)^(n-i)/i;</p>
<p>F:=(n,p)->sum(B(n,i,p),i=1..n);<br>
F(2,1);</p>
<p>This outputs 0, when it should output 1/2. See image attached:</p>
<p> </p>
<p><img src="/view.aspx?sf=237712_question/mapleMadness.png"></p>
<p>Is there a fix for this?</p>
237712Tue, 23 Jan 2024 13:51:31 Zbleesebleese