<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Plotting functions containing units</title>
    <link>http://www.mapleprimes.com/questions/99862-Plotting-Functions-Containing-Units</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 07:23:37 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 07:23:37 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Plotting functions containing units</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Plotting functions containing units</title>
      <link>http://www.mapleprimes.com/questions/99862-Plotting-Functions-Containing-Units</link>
    </image>
    <item>
      <title>some possibilities</title>
      <link>http://www.mapleprimes.com/questions/99862-Plotting-Functions-Containing-Units?ref=Feed:MaplePrimes:Plotting functions containing units:Comments#answer99865</link>
      <itunes:summary>&lt;p&gt;The problem is that the units in numerator and denominator do not simplify and cancel by default.&lt;/p&gt;
&lt;pre&gt;&amp;gt; a/(b+t*Unit(kg));

                      7 Unit('kg')            
             -----------------------------
             10 Unit('kg') + t Unit('kg')
&lt;/pre&gt;
&lt;p&gt;You can make them "cancel" in several ways.&lt;/p&gt;
&lt;pre&gt;&amp;gt; a:=7*Unit(kg):
&amp;gt; b:=10*Unit(kg):

&amp;gt; y:=t-&amp;gt;ln(a/(b+t)):
&amp;gt; plot(combine(y(t*Unit(kg)),units));

&amp;gt; y:=proc(t) uses Units:-Standard;
&amp;gt;            ln(a/(b+t)); end proc:
&amp;gt; plot(y(t*Unit(kg)));

&amp;gt; y:=t-&amp;gt;ln(a/(b+t)):
&amp;gt; plot(simplify(y(t*Unit(kg))));
&lt;/pre&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;The problem is that the units in numerator and denominator do not simplify and cancel by default.&lt;/p&gt;
&lt;pre&gt;&amp;gt; a/(b+t*Unit(kg));

                      7 Unit('kg')            
             -----------------------------
             10 Unit('kg') + t Unit('kg')
&lt;/pre&gt;
&lt;p&gt;You can make them "cancel" in several ways.&lt;/p&gt;
&lt;pre&gt;&amp;gt; a:=7*Unit(kg):
&amp;gt; b:=10*Unit(kg):

&amp;gt; y:=t-&amp;gt;ln(a/(b+t)):
&amp;gt; plot(combine(y(t*Unit(kg)),units));

&amp;gt; y:=proc(t) uses Units:-Standard;
&amp;gt;            ln(a/(b+t)); end proc:
&amp;gt; plot(y(t*Unit(kg)));

&amp;gt; y:=t-&amp;gt;ln(a/(b+t)):
&amp;gt; plot(simplify(y(t*Unit(kg))));
&lt;/pre&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>99865</guid>
      <pubDate>Sun, 05 Dec 2010 08:25:18 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
  </channel>
</rss>