<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Assigning weights to variables</title>
    <link>http://www.mapleprimes.com/questions/130368-Assigning-Weights-To-Variables</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 20:34:23 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 20:34:23 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Assigning weights to variables</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Assigning weights to variables</title>
      <link>http://www.mapleprimes.com/questions/130368-Assigning-Weights-To-Variables</link>
    </image>
    <item>
      <title>Write it</title>
      <link>http://www.mapleprimes.com/questions/130368-Assigning-Weights-To-Variables?ref=Feed:MaplePrimes:Assigning weights to variables:Comments#answer131114</link>
      <itunes:summary>&lt;p&gt;I think you'd have to write this yourself, but it wouldn't be too much work. The equivalent of the &lt;em&gt;ratweight&lt;/em&gt; command would simply write the weights into a table (global, or even better, (optionally) user-supplied) and you'd write a command called something like &lt;em&gt;evaluateWithRatWtLvl&lt;/em&gt; that takes an expression and an integer (and optionally the weight table, or otherwise using the global weight table), expands the expression, and throws away terms with too high weight.&lt;/p&gt;
&lt;p&gt;If you'd like, you could write a package that overloads certain operators, like + and ^, to do an automatic call to &lt;em&gt;evaluateWithRatWtLvl&lt;/em&gt; after performing their computation. This will only apply to code you type at the top level, though, not to internal computations done in Maple library code.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Erik Postma&lt;br&gt;Maplesoft.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I think you'd have to write this yourself, but it wouldn't be too much work. The equivalent of the &lt;em&gt;ratweight&lt;/em&gt; command would simply write the weights into a table (global, or even better, (optionally) user-supplied) and you'd write a command called something like &lt;em&gt;evaluateWithRatWtLvl&lt;/em&gt; that takes an expression and an integer (and optionally the weight table, or otherwise using the global weight table), expands the expression, and throws away terms with too high weight.&lt;/p&gt;
&lt;p&gt;If you'd like, you could write a package that overloads certain operators, like + and ^, to do an automatic call to &lt;em&gt;evaluateWithRatWtLvl&lt;/em&gt; after performing their computation. This will only apply to code you type at the top level, though, not to internal computations done in Maple library code.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Erik Postma&lt;br&gt;Maplesoft.&lt;/p&gt;</description>
      <guid>131114</guid>
      <pubDate>Thu, 23 Feb 2012 23:48:49 Z</pubDate>
      <itunes:author>epostma</itunes:author>
      <author>epostma</author>
    </item>
  </channel>
</rss>