<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Questions from a simple calculation with units.</title>
    <link>http://www.mapleprimes.com/questions/102557-Questions-From-A-Simple-Calculation-With-Units</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 06:42:23 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 06:42:23 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Questions from a simple calculation with units.</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Questions from a simple calculation with units.</title>
      <link>http://www.mapleprimes.com/questions/102557-Questions-From-A-Simple-Calculation-With-Units</link>
    </image>
    <item>
      <title>Use convert for the units, auto-load packages with maple.ini</title>
      <link>http://www.mapleprimes.com/questions/102557-Questions-From-A-Simple-Calculation-With-Units?ref=Feed:MaplePrimes:Questions from a simple calculation with units.:Comments#answer102624</link>
      <itunes:summary>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;1.I tried running your code and Pi is not automatically converted.&amp;nbsp; What I would recommend rather than approximating Pi to say 5 digits is to set the interface(displayprecision=5) which will show your answer to 5 decimal places but carry out the calculations without rounding.&lt;/p&gt;
&lt;p&gt;2. To convert units, you could try something like the following:&lt;/p&gt;
&lt;p&gt;convert(wiredensity, 'units', Units[Standard][`*`]('g', Units[Standard][`/`]('Units[Standard][`^`](m, 3)')));&lt;/p&gt;
&lt;p&gt;3. If you would like to automatically load certain Maple packages, have a look at the following link: http://www.maplesoft.com/support/faqs/detail.aspx?sid=32671&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;1.I tried running your code and Pi is not automatically converted.&amp;nbsp; What I would recommend rather than approximating Pi to say 5 digits is to set the interface(displayprecision=5) which will show your answer to 5 decimal places but carry out the calculations without rounding.&lt;/p&gt;
&lt;p&gt;2. To convert units, you could try something like the following:&lt;/p&gt;
&lt;p&gt;convert(wiredensity, 'units', Units[Standard][`*`]('g', Units[Standard][`/`]('Units[Standard][`^`](m, 3)')));&lt;/p&gt;
&lt;p&gt;3. If you would like to automatically load certain Maple packages, have a look at the following link: http://www.maplesoft.com/support/faqs/detail.aspx?sid=32671&lt;/p&gt;</description>
      <guid>102624</guid>
      <pubDate>Thu, 17 Mar 2011 22:08:06 Z</pubDate>
      <itunes:author>dskoog</itunes:author>
      <author>dskoog</author>
    </item>
    <item>
      <title>system CGS (centimeter-gram-second)</title>
      <link>http://www.mapleprimes.com/questions/102557-Questions-From-A-Simple-Calculation-With-Units?ref=Feed:MaplePrimes:Questions from a simple calculation with units.:Comments#answer102699</link>
      <itunes:summary>&lt;p&gt;There is a predefined system of units whose base units for mass and length are gram and centimeter (see &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=Units/CGS"&gt;here&lt;/a&gt;). There are other ways to change the default units for any given dimension, but let us know if this is not adequate for you.&lt;/p&gt;
&lt;p&gt;Maple will keep Pi as an exact quantity by default. One can use the `evalf` command to approximate it to floating-point. By default, Maple will use the `Digits` environment variable to control the working precision (see &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=Digits"&gt;here&lt;/a&gt;). One can also set the display precision for Standard GUI output (see &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=worksheet/managing/OptionsDialogPrecision#ScreenDisplay"&gt;here&lt;/a&gt;). It's usually better to let Maple use at least its default setting of Digits=10 for computation (and to separately control only the final display) than it is to downgrade the computation precision to something as low as Digits=5 (which might allow too much roundoff error for you on more complicated expressions). Below I use `evalf[5]` on just the final result, as a programmatic way to adjust the final displayed float value.&lt;/p&gt;
&lt;pre&gt;&amp;gt; restart:

&amp;gt; with(Units:-Standard):
&amp;gt; Units:-UseSystem(CGS);

&amp;gt; wirediameter:=.40*Unit(inch):
&amp;gt; wirelength:=1000*Unit(ft):
&amp;gt; wirevolume:=(wirediameter/2)^2 * Pi * wirelength: 
&amp;gt; wireweight:=61*Unit(lb):
&amp;gt; wiredensity:=evalf(wireweight/wirevolume):

&amp;gt; evalf[5](wiredensity);

                         [   g     ]
                  1.1197 [ ------- ]
                         [     3   ]
                         [   cm    ]
&lt;/pre&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;There is a predefined system of units whose base units for mass and length are gram and centimeter (see &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=Units/CGS"&gt;here&lt;/a&gt;). There are other ways to change the default units for any given dimension, but let us know if this is not adequate for you.&lt;/p&gt;
&lt;p&gt;Maple will keep Pi as an exact quantity by default. One can use the `evalf` command to approximate it to floating-point. By default, Maple will use the `Digits` environment variable to control the working precision (see &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=Digits"&gt;here&lt;/a&gt;). One can also set the display precision for Standard GUI output (see &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=worksheet/managing/OptionsDialogPrecision#ScreenDisplay"&gt;here&lt;/a&gt;). It's usually better to let Maple use at least its default setting of Digits=10 for computation (and to separately control only the final display) than it is to downgrade the computation precision to something as low as Digits=5 (which might allow too much roundoff error for you on more complicated expressions). Below I use `evalf[5]` on just the final result, as a programmatic way to adjust the final displayed float value.&lt;/p&gt;
&lt;pre&gt;&amp;gt; restart:

&amp;gt; with(Units:-Standard):
&amp;gt; Units:-UseSystem(CGS);

&amp;gt; wirediameter:=.40*Unit(inch):
&amp;gt; wirelength:=1000*Unit(ft):
&amp;gt; wirevolume:=(wirediameter/2)^2 * Pi * wirelength: 
&amp;gt; wireweight:=61*Unit(lb):
&amp;gt; wiredensity:=evalf(wireweight/wirevolume):

&amp;gt; evalf[5](wiredensity);

                         [   g     ]
                  1.1197 [ ------- ]
                         [     3   ]
                         [   cm    ]
&lt;/pre&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>102699</guid>
      <pubDate>Mon, 21 Mar 2011 19:54:08 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
    <item>
      <title>side remark: auto-load &amp; ini file</title>
      <link>http://www.mapleprimes.com/questions/102557-Questions-From-A-Simple-Calculation-With-Units?ref=Feed:MaplePrimes:Questions from a simple calculation with units.:Comments#comment102628</link>
      <itunes:summary>&lt;p&gt;The given link into the FAQ is saying not much, instead concrete instructions should be given:&lt;/p&gt;
&lt;p&gt;Which directory (&lt;span class="body"&gt;&lt;span&gt;working directory says nothing for a new user), file name and a worked example.&lt;br&gt;Some remarks when it may be not a good idea - and whether there is any need to care for the&lt;br&gt;chosen interface.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="body"&gt;&lt;span&gt;I remember that I was not able to use such ini file, when I started with Maple.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="body"&gt;&lt;span&gt;And: for Digits it does not work for classical sheets.&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;The given link into the FAQ is saying not much, instead concrete instructions should be given:&lt;/p&gt;
&lt;p&gt;Which directory (&lt;span class="body"&gt;&lt;span&gt;working directory says nothing for a new user), file name and a worked example.&lt;br&gt;Some remarks when it may be not a good idea - and whether there is any need to care for the&lt;br&gt;chosen interface.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="body"&gt;&lt;span&gt;I remember that I was not able to use such ini file, when I started with Maple.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="body"&gt;&lt;span&gt;And: for Digits it does not work for classical sheets.&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <guid>102628</guid>
      <pubDate>Thu, 17 Mar 2011 23:39:31 Z</pubDate>
      <itunes:author>Axel Vogt</itunes:author>
      <author>Axel Vogt</author>
    </item>
  </channel>
</rss>