<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Blog Entry, More Gems from the Little Red Book of Maple Magic</title>
    <link>http://www.mapleprimes.com/maplesoftblog/102311-More-Gems-From-The-Little-Red-Book-Of-Maple-Magic</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 11 Jun 2026 00:30:01 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 00:30:01 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Blog Entry, More Gems from the Little Red Book of Maple Magic</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Blog Entry, More Gems from the Little Red Book of Maple Magic</title>
      <link>http://www.mapleprimes.com/maplesoftblog/102311-More-Gems-From-The-Little-Red-Book-Of-Maple-Magic</link>
    </image>
    <item>
      <title>for Gem 6</title>
      <link>http://www.mapleprimes.com/maplesoftblog/102311-More-Gems-From-The-Little-Red-Book-Of-Maple-Magic?ref=Feed:MaplePrimes:More Gems from the Little Red Book of Maple Magic:Comments#comment102327</link>
      <itunes:summary>&lt;p&gt;For Gem 6 one may wish to consider 'signum' as well, since 'is' is expensive:&lt;/p&gt;
&lt;pre&gt;&amp;nbsp; if &lt;strong&gt;0 &amp;lt; signum&lt;/strong&gt;(2*sqrt(2)) then print(yes) else print(no) end if;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes&lt;br&gt;&lt;/pre&gt;
&lt;p&gt;Note that signum(0) = 0, signum(0.0) = 0.0&lt;/p&gt;
&lt;p&gt;I also made the experience that this also might work for long and complicated&lt;br&gt; expressions, where 'is' needed so long, that I killed it.&lt;/p&gt;
&lt;p&gt;PS: I like that 'gems' series.&lt;/p&gt;
&lt;p&gt;PPS: one can not copy code from your post, since that are images (thus needs&lt;br&gt;the appended *.mw sheet)&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, More Gems from the Little Red Book of Maple Magic</description>
      <guid>102327</guid>
      <pubDate>Wed, 09 Mar 2011 00:57:43 Z</pubDate>
      <itunes:author>Axel Vogt</itunes:author>
      <author>Axel Vogt</author>
    </item>
    <item>
      <title>Gem 7</title>
      <link>http://www.mapleprimes.com/maplesoftblog/102311-More-Gems-From-The-Little-Red-Book-Of-Maple-Magic?ref=Feed:MaplePrimes:More Gems from the Little Red Book of Maple Magic:Comments#comment102332</link>
      <itunes:summary>&lt;p&gt;I would avoid the solution of using Typesetting[Settings] because this will cause problems if you try to communicate with somebody who doesn't use the same settings.&amp;nbsp; Rather than trying to remember all the complications of when you do or don't need an explicit multiplication (space or *), it's by far preferable to stick to a simple infallible rule: always use explicit multiplication.&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, More Gems from the Little Red Book of Maple Magic</description>
      <guid>102332</guid>
      <pubDate>Wed, 09 Mar 2011 02:07:51 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>signum</title>
      <link>http://www.mapleprimes.com/maplesoftblog/102311-More-Gems-From-The-Little-Red-Book-Of-Maple-Magic?ref=Feed:MaplePrimes:More Gems from the Little Red Book of Maple Magic:Comments#comment102338</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/maplesoftblog/102311-More-Gems-From-The-Little-Red-Book-Of-Maple-Magic#comment102327"&gt;@Axel Vogt&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The single argument &lt;strong&gt;signum&lt;/strong&gt; is not reliable because of this "strange" property, after &lt;a href="http://www.maplesoft.com/support/help/search.aspx?term=signum:"&gt;?signum:&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;em&gt; The value of signum(0) is controlled by the environment variable _Envsignum0.  If _Envsignum0 is not assigned a value, then signum(0) is not defined, in that it can evaluate to anything. &lt;/em&gt;&lt;/blockquote&gt;
&lt;p&gt;Then, in my opinion, it is better to use the three argument version where the value is well defined:&lt;/p&gt;
&lt;pre&gt;signum(0,0,0), signum(0,0.0,0);
                                 0, 0
&lt;/pre&gt;
&lt;p&gt;Indeed, it seems the form most frequently used in the library code.&lt;/p&gt;
&lt;p&gt;I agree, a text form for input would be much more convenient than images, both for direct copy&amp;amp;paste and for reduced load time (so long for my taste, that I tend to avoid clicking on these blogs). Besides, the result is not so aesthetic anyway as the inline formulas appear misaligned with the surrounding text.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, More Gems from the Little Red Book of Maple Magic</description>
      <guid>102338</guid>
      <pubDate>Wed, 09 Mar 2011 06:33:16 Z</pubDate>
      <itunes:author>Alejandro Jakubi</itunes:author>
      <author>Alejandro Jakubi</author>
    </item>
    <item>
      <title>algsubs and multiple replacements</title>
      <link>http://www.mapleprimes.com/maplesoftblog/102311-More-Gems-From-The-Little-Red-Book-Of-Maple-Magic?ref=Feed:MaplePrimes:More Gems from the Little Red Book of Maple Magic:Comments#comment102497</link>
      <itunes:summary>&lt;p&gt;The limitation of &lt;strong&gt;algsubs&lt;/strong&gt; for multiple replacements can be somewhat worked around by using &lt;strong&gt;foldr&lt;/strong&gt; like:&lt;/p&gt;
&lt;pre&gt;q1:=sin(a*b*k)+(a*b*k)^2:
foldr(algsubs,q1,k*c=d,a*b=c);
                              2
                             d  + sin(d)
&lt;/pre&gt;
&lt;p&gt;Certainly, &lt;strong&gt;algsubs&lt;/strong&gt; is a most important command for these symbolic computations, and it is a pitty that its development has been frozen (or so) for about 15 years.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, More Gems from the Little Red Book of Maple Magic</description>
      <guid>102497</guid>
      <pubDate>Sun, 13 Mar 2011 04:12:26 Z</pubDate>
      <itunes:author>Alejandro Jakubi</itunes:author>
      <author>Alejandro Jakubi</author>
    </item>
  </channel>
</rss>