<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Behavior of "Tolerances" package</title>
    <link>http://www.mapleprimes.com/questions/35777-Behavior-Of-Tolerances-Package</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 21:33:46 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 21:33:46 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Behavior of "Tolerances" package</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Behavior of "Tolerances" package</title>
      <link>http://www.mapleprimes.com/questions/35777-Behavior-Of-Tolerances-Package</link>
    </image>
    <item>
      <title>evalr</title>
      <link>http://www.mapleprimes.com/questions/35777-Behavior-Of-Tolerances-Package?ref=Feed:MaplePrimes:Behavior of "Tolerances" package:Comments#answer45089</link>
      <itunes:summary>&lt;p&gt;The Tolerances package uses evalr.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; R1:=INTERVAL(76.0 .. 84.0):
&amp;gt; R2:=INTERVAL(114.0 .. 126.0):
&amp;gt; Req:=R1*R2/(R1+R2):

&amp;gt; evalr(Req);
                     INTERVAL(41.25714285 .. 55.70526317)
 
&amp;gt; evalr(1/(expand(1/Req)));
                     INTERVAL(45.59999998 .. 50.40000003)
&lt;/pre&gt;
&lt;p&gt;Now, that second result was just lucky. Terms simplified and repeated instances of R1 and R2 vanished before evalr got its hands on them.&lt;/p&gt;
&lt;p&gt;Are you trying to bound the behaviour of the system, given bounds on the capabilities of the components? If so, then I can imagine that a Tolerances package that functions well could be useful.&lt;/p&gt;
&lt;p&gt;If not, then are you trying to characterize behaviour given physical measurements of the resistances (with of course have an associated measurement error)? In that case, is the ScientificErrorAnalysis package of any use? Note that for that package, the error does not represent an interval, but rather a distribution.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; restart:

&amp;gt; R1:=ScientificErrorAnalysis:-Quantity(80.1,4.0)*Unit(ohm):
&amp;gt; R2:=ScientificErrorAnalysis:-Quantity(120.1,6.0)*Unit(ohm):

&amp;gt; Req:=combine(R1*R2/(R1+R2),errors);
           Req := Quantity(48.05199800 [Omega], 1.730531812 [Omega])
&lt;/pre&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;The Tolerances package uses evalr.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; R1:=INTERVAL(76.0 .. 84.0):
&amp;gt; R2:=INTERVAL(114.0 .. 126.0):
&amp;gt; Req:=R1*R2/(R1+R2):

&amp;gt; evalr(Req);
                     INTERVAL(41.25714285 .. 55.70526317)
 
&amp;gt; evalr(1/(expand(1/Req)));
                     INTERVAL(45.59999998 .. 50.40000003)
&lt;/pre&gt;
&lt;p&gt;Now, that second result was just lucky. Terms simplified and repeated instances of R1 and R2 vanished before evalr got its hands on them.&lt;/p&gt;
&lt;p&gt;Are you trying to bound the behaviour of the system, given bounds on the capabilities of the components? If so, then I can imagine that a Tolerances package that functions well could be useful.&lt;/p&gt;
&lt;p&gt;If not, then are you trying to characterize behaviour given physical measurements of the resistances (with of course have an associated measurement error)? In that case, is the ScientificErrorAnalysis package of any use? Note that for that package, the error does not represent an interval, but rather a distribution.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; restart:

&amp;gt; R1:=ScientificErrorAnalysis:-Quantity(80.1,4.0)*Unit(ohm):
&amp;gt; R2:=ScientificErrorAnalysis:-Quantity(120.1,6.0)*Unit(ohm):

&amp;gt; Req:=combine(R1*R2/(R1+R2),errors);
           Req := Quantity(48.05199800 [Omega], 1.730531812 [Omega])
&lt;/pre&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>45089</guid>
      <pubDate>Mon, 08 Feb 2010 12:42:36 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
    <item>
      <title>SEA vs Tolerances</title>
      <link>http://www.mapleprimes.com/questions/35777-Behavior-Of-Tolerances-Package?ref=Feed:MaplePrimes:Behavior of "Tolerances" package:Comments#answer45090</link>
      <itunes:summary>&lt;p&gt;restart;&lt;br /&gt;
R1 := ScientificErrorAnalysis:-Quantity(80.0, 4.0)*Unit(ohm);&lt;br /&gt;
R2 := ScientificErrorAnalysis:-Quantity(120.0, 6.0)*Unit(ohm);&lt;br /&gt;
Req := combine(R1*R2/(R1+R2), errors);&lt;/p&gt;
&lt;p&gt;restart;&lt;br /&gt;
with(Tolerances);&lt;br /&gt;
R1 := `&amp;amp;+-`(80.0, 4):&lt;br /&gt;
print(`output redirected...`); # input placeholder&lt;br /&gt;
R2 := `&amp;amp;+-`(120.0, 6):&lt;br /&gt;
print(`output redirected...`); # input placeholder&lt;br /&gt;
R := 1/(1/R1+1/R2);&lt;/p&gt;
&lt;p&gt;48.0 `&amp;amp;+-` 2.40&lt;/p&gt;
&lt;p&gt;restart;&lt;br /&gt;
R := 1/(1/R1+1/R2):&lt;br /&gt;
print(`output redirected...`); # input placeholder&lt;br /&gt;
dR := sqrt(((diff(R, R1))*dR1)^2+((diff(R, R2))*dR2)^2):&lt;/p&gt;
&lt;p&gt;subs(R1 = 80.00, R2 = 120.00, R);&lt;br /&gt;
48.00000001&lt;/p&gt;
&lt;p&gt;subs(R1 = 80.0, R2 = 120.0, dR1 = 4.0, dR2 = 6.0, dR);&lt;br /&gt;
1.730664613&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;restart;&lt;br /&gt;
R1 := ScientificErrorAnalysis:-Quantity(80.0, 4.0)*Unit(ohm);&lt;br /&gt;
R2 := ScientificErrorAnalysis:-Quantity(120.0, 6.0)*Unit(ohm);&lt;br /&gt;
Req := combine(R1*R2/(R1+R2), errors);&lt;/p&gt;
&lt;p&gt;restart;&lt;br /&gt;
with(Tolerances);&lt;br /&gt;
R1 := `&amp;amp;+-`(80.0, 4):&lt;br /&gt;
print(`output redirected...`); # input placeholder&lt;br /&gt;
R2 := `&amp;amp;+-`(120.0, 6):&lt;br /&gt;
print(`output redirected...`); # input placeholder&lt;br /&gt;
R := 1/(1/R1+1/R2);&lt;/p&gt;
&lt;p&gt;48.0 `&amp;amp;+-` 2.40&lt;/p&gt;
&lt;p&gt;restart;&lt;br /&gt;
R := 1/(1/R1+1/R2):&lt;br /&gt;
print(`output redirected...`); # input placeholder&lt;br /&gt;
dR := sqrt(((diff(R, R1))*dR1)^2+((diff(R, R2))*dR2)^2):&lt;/p&gt;
&lt;p&gt;subs(R1 = 80.00, R2 = 120.00, R);&lt;br /&gt;
48.00000001&lt;/p&gt;
&lt;p&gt;subs(R1 = 80.0, R2 = 120.0, dR1 = 4.0, dR2 = 6.0, dR);&lt;br /&gt;
1.730664613&lt;/p&gt;</description>
      <guid>45090</guid>
      <pubDate>Mon, 08 Feb 2010 20:10:21 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
    <item>
      <title>Behavior of "Tolerances" package</title>
      <link>http://www.mapleprimes.com/questions/35777-Behavior-Of-Tolerances-Package?ref=Feed:MaplePrimes:Behavior of "Tolerances" package:Comments#answer45091</link>
      <itunes:summary>&lt;p&gt;Thanks for your responses and explanations. As herclau noticed&amp;nbsp;the issue&amp;nbsp;can be resolved for this case with some algebra.&lt;/p&gt;
&lt;p&gt;My intent was to use this package to figure out&amp;nbsp;required or resulting tolerances for dimensions/specifications of components or assemblies. It can be done of course, but&amp;nbsp;it's a rather tedious bookkeeping exercise.&amp;nbsp;Unfortunately it's also a very frequent exercise for a mechanical engineer like me. I'll try using the package keeping in mind its restrictions.&lt;/p&gt;
&lt;p&gt;The SEA package would be more useful to bound measurements and calculations with measurements as mentioned.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thanks for your responses and explanations. As herclau noticed&amp;nbsp;the issue&amp;nbsp;can be resolved for this case with some algebra.&lt;/p&gt;
&lt;p&gt;My intent was to use this package to figure out&amp;nbsp;required or resulting tolerances for dimensions/specifications of components or assemblies. It can be done of course, but&amp;nbsp;it's a rather tedious bookkeeping exercise.&amp;nbsp;Unfortunately it's also a very frequent exercise for a mechanical engineer like me. I'll try using the package keeping in mind its restrictions.&lt;/p&gt;
&lt;p&gt;The SEA package would be more useful to bound measurements and calculations with measurements as mentioned.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>45091</guid>
      <pubDate>Thu, 11 Feb 2010 05:36:22 Z</pubDate>
      <itunes:author>andreasr</itunes:author>
      <author>andreasr</author>
    </item>
  </channel>
</rss>