<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, Possible bugs in Maple 14 (Evalf command and more)</title>
    <link>http://www.mapleprimes.com/posts/96064-Possible-Bugs-In-Maple-14-Evalf-Command-And-More</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 19:48:57 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 19:48:57 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, Possible bugs in Maple 14 (Evalf command and more)</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, Possible bugs in Maple 14 (Evalf command and more)</title>
      <link>http://www.mapleprimes.com/posts/96064-Possible-Bugs-In-Maple-14-Evalf-Command-And-More</link>
    </image>
    <item>
      <title>quote it</title>
      <link>http://www.mapleprimes.com/posts/96064-Possible-Bugs-In-Maple-14-Evalf-Command-And-More?ref=Feed:MaplePrimes:Possible bugs in Maple 14 (Evalf command and more):Comments#comment96065</link>
      <itunes:summary>&lt;p&gt;Quote the m using single-right quotes in the pop-up, when doing that Units-&amp;gt;Replace Units context-menu action.&lt;/p&gt;
&lt;p&gt;You previously assigned to the global name m.&lt;/p&gt;
&lt;p&gt;So if you want to use it elsewhere as a unit name, then you have to use so-called uneval quotes (single right-quotes. Otherwise it will get evaluated to whatever you previously assigned to it.&lt;/p&gt;
&lt;p&gt;Eg, 'm'&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for the evalf question, things tend to break down when Digits is set to less than 4 or 5. We can investigate your example as a simple "atomic" operation -- a multiplication of e1 and e2 which are two floats. At very low Digits the computed result is not accurate to less than an ulp (let alone less than 1/2 an ulp).&lt;/p&gt;
&lt;pre&gt;&amp;gt; restart:
&amp;gt; e1:=evalf[20](Pi):
&amp;gt; e2:=evalf[20](4*(1391000/2)^2):
&amp;gt; T2:=evalf[20](e1*e2):

&amp;gt; for d from 1 to 10 do
&amp;gt;   forget(evalf);
&amp;gt;   T1:=evalf[d](e1*e2);
&amp;gt;   print([testfloat(T1,T2,1,test=1,digits=d)]);
&amp;gt; end do:
                             [true]
                      [[false, 2., ulps ]]
                      [[false, 2., ulps ]]
                             [true]
                             [true]
                             [true]
                             [true]
                             [true]
                             [true]
                             [true]
&lt;/pre&gt;
&lt;p&gt;A lesson here is that evalf[d] isn't so useful for very small d (&amp;lt;5). If you want merely to get a shorter form of a floating-point coefficient of a final result then you could either apply evalf[2] to (only) the final value or use the elision settings in the Standard GUI to modify displayed floating-point values automatically (see Options-&amp;gt;Precision from the toolbar).&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Possible bugs in Maple 14 (Evalf command and more)</description>
      <guid>96065</guid>
      <pubDate>Tue, 17 Aug 2010 19:43:39 Z</pubDate>
      <itunes:author>pagan</itunes:author>
      <author>pagan</author>
    </item>
    <item>
      <title>Also in 12</title>
      <link>http://www.mapleprimes.com/posts/96064-Possible-Bugs-In-Maple-14-Evalf-Command-And-More?ref=Feed:MaplePrimes:Possible bugs in Maple 14 (Evalf command and more):Comments#comment96066</link>
      <itunes:summary>&lt;p&gt;hmmmm.....&lt;br&gt;&lt;br&gt;for i from 1 to 4 do&lt;br&gt;&amp;nbsp;&amp;nbsp; evalf[i](S)&lt;br&gt;end do;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6. 10&lt;sup&gt;12&lt;br&gt;&lt;/sup&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.9 10&lt;sup&gt;12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/sup&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.06 10&lt;sup&gt;12&lt;br&gt;&lt;/sup&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.080 10&lt;sup&gt;12&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;That is an odd one.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Possible bugs in Maple 14 (Evalf command and more)</description>
      <guid>96066</guid>
      <pubDate>Tue, 17 Aug 2010 20:14:57 Z</pubDate>
      <itunes:author>Christopher2222</itunes:author>
      <author>Christopher2222</author>
    </item>
    <item>
      <title>Units versus variables</title>
      <link>http://www.mapleprimes.com/posts/96064-Possible-Bugs-In-Maple-14-Evalf-Command-And-More?ref=Feed:MaplePrimes:Possible bugs in Maple 14 (Evalf command and more):Comments#comment96067</link>
      <itunes:summary>&lt;p&gt;OK, thank you! This makes it work indeed. But then it was a bad suggestion Maple posed in the dialog:&amp;nbsp;kg/m^3. It should have been kg/'m'^3. But maybe it is too much to ask for that Maple should keep track of the variables already defined?&amp;nbsp;I had hoped though that Units and variables did not interfere. I mean units are put in double brackets and should not be&amp;nbsp;mistaken with variables. But obviously that is not the case!&lt;/p&gt;
&lt;p&gt;Erik&amp;nbsp;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Possible bugs in Maple 14 (Evalf command and more)</description>
      <guid>96067</guid>
      <pubDate>Tue, 17 Aug 2010 20:22:04 Z</pubDate>
      <itunes:author>erik10</itunes:author>
      <author>erik10</author>
    </item>
    <item>
      <title>Evalf then of limited value ...</title>
      <link>http://www.mapleprimes.com/posts/96064-Possible-Bugs-In-Maple-14-Evalf-Command-And-More?ref=Feed:MaplePrimes:Possible bugs in Maple 14 (Evalf command and more):Comments#comment96068</link>
      <itunes:summary>&lt;p&gt;I understand the problem now: Maple is rounding off to two digits of the individual factors, then make the computation and is rounding off again. This is kind of disappointing. I had expected Maple to calculate the parentheses with full precision and only round off to two digits in the end. As it seem to be now,&amp;nbsp;the evalf command is of&amp;nbsp;limited value to me. Now I can't save&amp;nbsp;command lines:&amp;nbsp;I need to&amp;nbsp;calculate first and then add a new command line in the end to force Maple to do it the way I want.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why has Maple implemented the evalf command in this way?&amp;nbsp;I&amp;nbsp;don't see any&amp;nbsp;value in that choice? Probably there is a reason, though&amp;nbsp;:)&lt;/p&gt;
&lt;p&gt;pagan: Shouldn't you divide your evalf computation in even more parts? I mean 4*(1391000/2)^2 could be divided as well.&lt;/p&gt;
&lt;p&gt;Thank you for all your&amp;nbsp;replies. I appreciate it!&lt;/p&gt;
&lt;p&gt;Erik&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Possible bugs in Maple 14 (Evalf command and more)</description>
      <guid>96068</guid>
      <pubDate>Tue, 17 Aug 2010 21:14:07 Z</pubDate>
      <itunes:author>erik10</itunes:author>
      <author>erik10</author>
    </item>
    <item>
      <title>faq</title>
      <link>http://www.mapleprimes.com/posts/96064-Possible-Bugs-In-Maple-14-Evalf-Command-And-More?ref=Feed:MaplePrimes:Possible bugs in Maple 14 (Evalf command and more):Comments#comment96069</link>
      <itunes:summary>&lt;p&gt;Okay I found&amp;nbsp;a faq&amp;nbsp;that answers your question, where you came to the same reasoning.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.maplesoft.com/support/faqs/detail.aspx?sid=87674&amp;amp;pid=1"&gt;http://www.maplesoft.com/support/faqs/detail.aspx?sid=87674&amp;amp;pid=1&lt;/a&gt;&amp;nbsp;heading :&amp;nbsp;The evalf command is not rounding the answer correctly.&lt;/p&gt;
&lt;p&gt;I wonder if the intention was to speed up calculations?&amp;nbsp; To avoid rounding errors like this, in hindsight, I wonder if they could have added a couple of decimal places internally so the number is rounded properly.&amp;nbsp; However there&amp;nbsp;is probably a few situations that would still bring up&amp;nbsp;this rounding issue.&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Possible bugs in Maple 14 (Evalf command and more)</description>
      <guid>96069</guid>
      <pubDate>Tue, 17 Aug 2010 22:31:13 Z</pubDate>
      <itunes:author>Christopher2222</itunes:author>
      <author>Christopher2222</author>
    </item>
    <item>
      <title>Don't forget Maple allows for arbitrary precision</title>
      <link>http://www.mapleprimes.com/posts/96064-Possible-Bugs-In-Maple-14-Evalf-Command-And-More?ref=Feed:MaplePrimes:Possible bugs in Maple 14 (Evalf command and more):Comments#comment96071</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/posts/96064-Possible-Bugs-In-Maple-14-Evalf-Command-And-More#comment96068"&gt;@erik10&lt;/a&gt; In Maple, evalf is much more than a rounding function.&amp;nbsp; evalf[n](x) evaluates x using n digits of precision.&amp;nbsp;&amp;nbsp;&amp;nbsp; This is particularly useful when you increase n above the default of 10.&amp;nbsp; You can numerically evaluate the expression using 20, 50 or 1000 digits of precision.&amp;nbsp; In some sense, there is no "full precision" when using evalf, especially if your calculations include constants like Pi.&amp;nbsp; Try calling evalf[n](Pi) for various values of n, I think you'll begin to understand why evalf works the way it does.&lt;/p&gt;
&lt;p&gt;You can evaluate your expression using evalf to compute the result, then call evalf[2] on the result to reduce it to 2 digits of precision.&lt;/p&gt;
&lt;p&gt;Darin&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Possible bugs in Maple 14 (Evalf command and more)</description>
      <guid>96071</guid>
      <pubDate>Tue, 17 Aug 2010 22:48:39 Z</pubDate>
      <itunes:author>dohashi</itunes:author>
      <author>dohashi</author>
    </item>
  </channel>
</rss>