<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - Maple 2022 Posts and Questions</title>
    <link>http://www.mapleprimes.com/products/Maple/Maple 2022</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sat, 23 May 2026 18:43:10 GMT</lastBuildDate>
    <pubDate>Sat, 23 May 2026 18:43:10 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>Maple 2022 Questions and Posts on MaplePrimes</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - Maple 2022 Posts and Questions</title>
      <link>http://www.mapleprimes.com/products/Maple/Maple 2022</link>
    </image>
    <item>
      <title>How to tweak a procedure to avoid choking as much as possible when using Grid?</title>
      <link>http://www.mapleprimes.com/questions/243609-How-To-Tweak-A-Procedure-To-Avoid-Choking?ref=Feed:MaplePrimes:Version Maple 2022</link>
      <itunes:summary>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I need to run the following procedure a couple of million times. Although it works, Maple sometimes chokes for no apparent reason (if there is a reason, please let me know). I was wondering whether an expert could help me tweak the procedure (or possibly rewrite it) to achieve the best possible performance. I am planning to use &lt;code&gt;Grid:-Map&lt;/code&gt; or, if possible, &lt;code&gt;Threads:-Map&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;pre class="prettyprint"&gt;
generateNonlinearModelsPlus := proc(model::list,fullmodel::list,vars::list:=[x,y,z])
description &amp;quot;This function generates a list of all models with one more monomial from the full model&amp;quot;:
local tab::table(),n:=nops(model),i,j,k:=1,ans,terms,aaa,allmoncoefThreads:
# local procedure
allmoncoefThreads := proc(f::list,vars::list)
description &amp;quot;This function finds the monomials multipled by their coefficients for each expression (equation) of a list.&amp;quot;:
local n:=numelems(f),i,mon:=[seq](0,i=1..n),M,cc:=[seq](0,i=1..n),ans:
for i from 1 to n do
  cc[i]:=[coeffs](expand(f[i]),vars, &amp;#39;M&amp;#39;):
  mon[i]:=[M]:
end do:
ans:=[seq](zip((ww,vv)-&amp;gt;ww*vv,cc[i],mon[i]),i=1..n):
return(ans)
end proc:
# main part
ans:=zip((w,v)-&amp;gt;expand(simplify(v-w)),model,fullmodel): # Find the monomials that are not in model
terms:=allmoncoefThreads(ans,vars): # Separate the monomials
#
for i from 1 to n do
   aaa:=model:
   for j from 1 to nops(terms[i]) do
       aaa[i]:=model[i]+terms[i,j]:
       tab[k]:=aaa:
       k:=k+1:
   end do:
end do:
tab:=convert(tab,list):
return(tab):
end proc:
&lt;/pre&gt;

&lt;p&gt;Here is an example of how I run it:&amp;nbsp;&lt;/p&gt;

&lt;pre class="prettyprint"&gt;
model:=[y*alpha[1, 2], z*alpha[2, 3], x^3*alpha[3, 10] + x*alpha[3, 1] + alpha[3, 0]]:

fullmodel:=[x^3*alpha[1, 10] + x^2*y*alpha[1, 11] + x^2*z*alpha[1, 12] + x*y^2*alpha[1, 13] + x*y*z*alpha[1, 14] + x*z^2*alpha[1, 15] + y^3*alpha[1, 16] + y^2*z*alpha[1, 17] + y*z^2*alpha[1, 18] + z^3*alpha[1, 19] + x^2*alpha[1, 4] + x*y*alpha[1, 5] + x*z*alpha[1, 6] + y^2*alpha[1, 7] + y*z*alpha[1, 8] + z^2*alpha[1, 9] + x*alpha[1, 1] + y*alpha[1, 2] + z*alpha[1, 3] + alpha[1, 0], x^3*alpha[2, 10] + x^2*y*alpha[2, 11] + x^2*z*alpha[2, 12] + x*y^2*alpha[2, 13] + x*y*z*alpha[2, 14] + x*z^2*alpha[2, 15] + y^3*alpha[2, 16] + y^2*z*alpha[2, 17] + y*z^2*alpha[2, 18] + z^3*alpha[2, 19] + x^2*alpha[2, 4] + x*y*alpha[2, 5] + x*z*alpha[2, 6] + y^2*alpha[2, 7] + y*z*alpha[2, 8] + z^2*alpha[2, 9] + x*alpha[2, 1] + y*alpha[2, 2] + z*alpha[2, 3] + alpha[2, 0], x^3*alpha[3, 10] + x^2*y*alpha[3, 11] + x^2*z*alpha[3, 12] + x*y^2*alpha[3, 13] + x*y*z*alpha[3, 14] + x*z^2*alpha[3, 15] + y^3*alpha[3, 16] + y^2*z*alpha[3, 17] + y*z^2*alpha[3, 18] + z^3*alpha[3, 19] + x^2*alpha[3, 4] + x*y*alpha[3, 5] + x*z*alpha[3, 6] + y^2*alpha[3, 7] + y*z*alpha[3, 8] + z^2*alpha[3, 9] + x*alpha[3, 1] + y*alpha[3, 2] + z*alpha[3, 3] + alpha[3, 0]]:

vars:=[x,y,z]:

ans:=generateNonlinearModelsPlus(model,fullmodel,vars)

&lt;/pre&gt;

&lt;p&gt;Many thanks.&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I need to run the following procedure a couple of million times. Although it works, Maple sometimes chokes for no apparent reason (if there is a reason, please let me know). I was wondering whether an expert could help me tweak the procedure (or possibly rewrite it) to achieve the best possible performance. I am planning to use &lt;code dir="ltr"&gt;Grid:-Map&lt;/code&gt; or, if possible, &lt;code dir="ltr"&gt;Threads:-Map&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;pre class="prettyprint"&gt;
generateNonlinearModelsPlus := proc(model::list,fullmodel::list,vars::list:=[x,y,z])
description &amp;quot;This function generates a list of all models with one more monomial from the full model&amp;quot;:
local tab::table(),n:=nops(model),i,j,k:=1,ans,terms,aaa,allmoncoefThreads:
# local procedure
allmoncoefThreads := proc(f::list,vars::list)
description &amp;quot;This function finds the monomials multipled by their coefficients for each expression (equation) of a list.&amp;quot;:
local n:=numelems(f),i,mon:=[seq](0,i=1..n),M,cc:=[seq](0,i=1..n),ans:
for i from 1 to n do
  cc[i]:=[coeffs](expand(f[i]),vars, &amp;#39;M&amp;#39;):
  mon[i]:=[M]:
end do:
ans:=[seq](zip((ww,vv)-&amp;gt;ww*vv,cc[i],mon[i]),i=1..n):
return(ans)
end proc:
# main part
ans:=zip((w,v)-&amp;gt;expand(simplify(v-w)),model,fullmodel): # Find the monomials that are not in model
terms:=allmoncoefThreads(ans,vars): # Separate the monomials
#
for i from 1 to n do
   aaa:=model:
   for j from 1 to nops(terms[i]) do
       aaa[i]:=model[i]+terms[i,j]:
       tab[k]:=aaa:
       k:=k+1:
   end do:
end do:
tab:=convert(tab,list):
return(tab):
end proc:
&lt;/pre&gt;

&lt;p&gt;Here is an example of how I run it:&amp;nbsp;&lt;/p&gt;

&lt;pre class="prettyprint"&gt;
model:=[y*alpha[1, 2], z*alpha[2, 3], x^3*alpha[3, 10] + x*alpha[3, 1] + alpha[3, 0]]:

fullmodel:=[x^3*alpha[1, 10] + x^2*y*alpha[1, 11] + x^2*z*alpha[1, 12] + x*y^2*alpha[1, 13] + x*y*z*alpha[1, 14] + x*z^2*alpha[1, 15] + y^3*alpha[1, 16] + y^2*z*alpha[1, 17] + y*z^2*alpha[1, 18] + z^3*alpha[1, 19] + x^2*alpha[1, 4] + x*y*alpha[1, 5] + x*z*alpha[1, 6] + y^2*alpha[1, 7] + y*z*alpha[1, 8] + z^2*alpha[1, 9] + x*alpha[1, 1] + y*alpha[1, 2] + z*alpha[1, 3] + alpha[1, 0], x^3*alpha[2, 10] + x^2*y*alpha[2, 11] + x^2*z*alpha[2, 12] + x*y^2*alpha[2, 13] + x*y*z*alpha[2, 14] + x*z^2*alpha[2, 15] + y^3*alpha[2, 16] + y^2*z*alpha[2, 17] + y*z^2*alpha[2, 18] + z^3*alpha[2, 19] + x^2*alpha[2, 4] + x*y*alpha[2, 5] + x*z*alpha[2, 6] + y^2*alpha[2, 7] + y*z*alpha[2, 8] + z^2*alpha[2, 9] + x*alpha[2, 1] + y*alpha[2, 2] + z*alpha[2, 3] + alpha[2, 0], x^3*alpha[3, 10] + x^2*y*alpha[3, 11] + x^2*z*alpha[3, 12] + x*y^2*alpha[3, 13] + x*y*z*alpha[3, 14] + x*z^2*alpha[3, 15] + y^3*alpha[3, 16] + y^2*z*alpha[3, 17] + y*z^2*alpha[3, 18] + z^3*alpha[3, 19] + x^2*alpha[3, 4] + x*y*alpha[3, 5] + x*z*alpha[3, 6] + y^2*alpha[3, 7] + y*z*alpha[3, 8] + z^2*alpha[3, 9] + x*alpha[3, 1] + y*alpha[3, 2] + z*alpha[3, 3] + alpha[3, 0]]:

vars:=[x,y,z]:

ans:=generateNonlinearModelsPlus(model,fullmodel,vars)

&lt;/pre&gt;

&lt;p&gt;Many thanks.&lt;/p&gt;
</description>
      <guid>243609</guid>
      <pubDate>Fri, 22 May 2026 17:09:55 Z</pubDate>
      <itunes:author>emendes</itunes:author>
      <author>emendes</author>
    </item>
    <item>
      <title>How to get a date from a Julian Day Number</title>
      <link>http://www.mapleprimes.com/questions/242377-How-To-Get-A-Date-From-A-Julian-Day-Number?ref=Feed:MaplePrimes:Version Maple 2022</link>
      <itunes:summary>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Is there a way to get a date from a Julian Day Number in Maple? I can easily calculate a Julian Day Number in Maple, but sometimes I need to go in the other direction. I have searched for a solution. Google AI has suggested a couple solutions, but the Maple commands it gives don&amp;#39;t seem to exist (certainly not in Maple 2022.2).&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;John&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Is there a way to get a date from a Julian Day Number in Maple? I can easily calculate a Julian Day Number in Maple, but sometimes I need to go in the other direction. I have searched for a solution. Google AI has suggested a couple solutions, but the Maple commands it gives don&amp;#39;t seem to exist (certainly not in Maple 2022.2).&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;John&lt;/p&gt;
</description>
      <guid>242377</guid>
      <pubDate>Sat, 04 Apr 2026 16:02:41 Z</pubDate>
      <itunes:author>Jno</itunes:author>
      <author>Jno</author>
    </item>
    <item>
      <title>Delta symbol in name</title>
      <link>http://www.mapleprimes.com/questions/242331-Delta-Symbol-In-Name?ref=Feed:MaplePrimes:Version Maple 2022</link>
      <itunes:summary>&lt;p&gt;I am trying to use the symbol Delta in front of a symbol to denote a change in the variable in Maple 2022.For exmaple Q&amp;#39;:=Q+Delta_Q;&amp;nbsp;But I can&amp;#39;t figure out how to denote it: Delta_Q does not seem to work as it displays a literal &amp;quot;Delta_Q&amp;quot;.&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;I am trying to use the symbol Delta in front of a symbol to denote a change in the variable in Maple 2022.For exmaple Q&amp;#39;:=Q+Delta_Q;&amp;nbsp;But I can&amp;#39;t figure out how to denote it: Delta_Q does not seem to work as it displays a literal &amp;quot;Delta_Q&amp;quot;.&lt;/p&gt;
</description>
      <guid>242331</guid>
      <pubDate>Thu, 19 Mar 2026 01:39:14 Z</pubDate>
      <itunes:author>Tycho Brahe</itunes:author>
      <author>Tycho Brahe</author>
    </item>
    <item>
      <title>Trouble browsing large vector or matrix</title>
      <link>http://www.mapleprimes.com/questions/242326-Trouble-Browsing-Large-Vector-Or-Matrix?ref=Feed:MaplePrimes:Version Maple 2022</link>
      <itunes:summary>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I was running Maple 2022.2 on Windows 11 and now I am using Linux Mint. I ran into something today that doesn&amp;#39;t work as expected on LM. I thought it did on Windows, but now I am not so sure.&lt;/p&gt;

&lt;p&gt;At any rate, I am unable to browse large vectors or matrices with more than 10001 rows. I looked for a setting that lets me change it, but I can&amp;#39;t find one. The data is there--I can plot it and export it, but I can&amp;#39;t browse it.&lt;/p&gt;

&lt;p&gt;Any thoughts? Thanks.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;/p&gt;

&lt;p&gt;Jno.&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I was running Maple 2022.2 on Windows 11 and now I am using Linux Mint. I ran into something today that doesn&amp;#39;t work as expected on LM. I thought it did on Windows, but now I am not so sure.&lt;/p&gt;

&lt;p&gt;At any rate, I am unable to browse large vectors or matrices with more than 10001 rows. I looked for a setting that lets me change it, but I can&amp;#39;t find one. The data is there--I can plot it and export it, but I can&amp;#39;t browse it.&lt;/p&gt;

&lt;p&gt;Any thoughts? Thanks.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;/p&gt;

&lt;p&gt;Jno.&lt;/p&gt;
</description>
      <guid>242326</guid>
      <pubDate>Tue, 17 Mar 2026 00:06:10 Z</pubDate>
      <itunes:author>Jno</itunes:author>
      <author>Jno</author>
    </item>
    <item>
      <title>Display region boundary in plot?</title>
      <link>http://www.mapleprimes.com/questions/242301-Display-Region-Boundary-In-Plot?ref=Feed:MaplePrimes:Version Maple 2022</link>
      <itunes:summary>&lt;p&gt;I have generated the regional plot, but the boundaries between the regions are not clearly marked. How can I highlight the boundaries using a black line or a black dashed line, similar to the example image? What syntax should I use? I have attached my generated image file.&lt;br&gt;
&lt;br&gt;
&lt;a href="/view.aspx?sf=242301_question/Regional_new.mw"&gt;Regional_new.mw&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img src="/view.aspx?sf=242301_question/Boundary.JPG"&gt;&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;I have generated the regional plot, but the boundaries between the regions are not clearly marked. How can I highlight the boundaries using a black line or a black dashed line, similar to the example image? What syntax should I use? I have attached my generated image file.&lt;br&gt;
&lt;br&gt;
&lt;a href="/view.aspx?sf=242301_question/Regional_new.mw"&gt;Regional_new.mw&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img src="/view.aspx?sf=242301_question/Boundary.JPG"&gt;&lt;/p&gt;
</description>
      <guid>242301</guid>
      <pubDate>Mon, 09 Mar 2026 07:35:12 Z</pubDate>
      <itunes:author>Andiguys</itunes:author>
      <author>Andiguys</author>
    </item>
    <item>
      <title>Legend error in multi-curve plot</title>
      <link>http://www.mapleprimes.com/questions/242287-Legend-Error-In-Multicurve-Plot?ref=Feed:MaplePrimes:Version Maple 2022</link>
      <itunes:summary>&lt;p&gt;I would like to plot multiple curves in a single graph with proper legends for different values of &amp;theta;, similar to the sample figure. However, I am encountering an error while generating the legend. What modifications should I make to correct this? Additionally, how can I display labels such as &amp;theta;=0.4, &amp;theta;=0.5 etc., directly inside the plot as shown in the sample?&lt;/p&gt;

&lt;p&gt;&lt;a href="/view.aspx?sf=242287_question/Graph_legend_error.mw"&gt;Graph_legend_error.mw&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;img src="/view.aspx?sf=242287_question/1.JPG"&gt;&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;I would like to plot multiple curves in a single graph with proper legends for different values of &amp;theta;, similar to the sample figure. However, I am encountering an error while generating the legend. What modifications should I make to correct this? Additionally, how can I display labels such as &amp;theta;=0.4, &amp;theta;=0.5 etc., directly inside the plot as shown in the sample?&lt;/p&gt;

&lt;p&gt;&lt;a href="/view.aspx?sf=242287_question/Graph_legend_error.mw"&gt;Graph_legend_error.mw&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;img src="/view.aspx?sf=242287_question/1.JPG"&gt;&lt;/p&gt;
</description>
      <guid>242287</guid>
      <pubDate>Wed, 04 Mar 2026 06:21:44 Z</pubDate>
      <itunes:author>Andiguys</itunes:author>
      <author>Andiguys</author>
    </item>
  </channel>
</rss>