<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Variable's hidden evaluation</title>
    <link>http://www.mapleprimes.com/questions/143966-Variables-Hidden-Evaluation</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 18:24:24 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 18:24:24 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Variable's hidden evaluation</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Variable's hidden evaluation</title>
      <link>http://www.mapleprimes.com/questions/143966-Variables-Hidden-Evaluation</link>
    </image>
    <item>
      <title>reverse the order of operations</title>
      <link>http://www.mapleprimes.com/questions/143966-Variables-Hidden-Evaluation?ref=Feed:MaplePrimes:Variable's hidden evaluation:Comments#answer143967</link>
      <itunes:summary>&lt;p&gt;In your example, `c` has been assigned the value that you see. The fact that the value came from evaluating a+b is lost (except mathematically, but you don't seem to be wanting that), by which I mean that in your example the literal 'a+b' is not a part of the value assigned to name `c`.&lt;/p&gt;
&lt;p&gt;If you reverse the order of operations, then yes you can evaluate `c` to one level, and get the unevaluated 'a+b'.&lt;/p&gt;
&lt;pre&gt;&amp;gt; restart:

&amp;gt; c:=a+b;

                                  c := a + b

&amp;gt; a:=5*x^2-3*y^3:
 
&amp;gt; b:=3*x^2+10*y^3:

&amp;gt; c;

                                     2      3
                                  8 x  + 7 y

&amp;gt; eval(c,1);

                                     a + b
&lt;/pre&gt;
&lt;p&gt;In my example above it is full evaluation of `c` that produces and displays that expression in x and y.&lt;/p&gt;
&lt;p&gt;Another variation is,&lt;/p&gt;
&lt;pre&gt;&amp;gt; restart:

&amp;gt; a:=5*x^2-3*y^3:      
&amp;gt; b:=3*x^2+10*y^3:     

&amp;gt; c:='a+b';

                                  c := a + b

&amp;gt; c;

                                     2      3
                                  8 x  + 7 y

&amp;gt; eval(c,1);

                                     a + b
&lt;/pre&gt;
&lt;p&gt;You could also study the evaluation rules within procedures, which differ from those for the "top level." The manuals should help here.&lt;/p&gt;
&lt;p&gt;You might also consider the somewhat related topic of command history.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;In your example, `c` has been assigned the value that you see. The fact that the value came from evaluating a+b is lost (except mathematically, but you don't seem to be wanting that), by which I mean that in your example the literal 'a+b' is not a part of the value assigned to name `c`.&lt;/p&gt;
&lt;p&gt;If you reverse the order of operations, then yes you can evaluate `c` to one level, and get the unevaluated 'a+b'.&lt;/p&gt;
&lt;pre&gt;&amp;gt; restart:

&amp;gt; c:=a+b;

                                  c := a + b

&amp;gt; a:=5*x^2-3*y^3:
 
&amp;gt; b:=3*x^2+10*y^3:

&amp;gt; c;

                                     2      3
                                  8 x  + 7 y

&amp;gt; eval(c,1);

                                     a + b
&lt;/pre&gt;
&lt;p&gt;In my example above it is full evaluation of `c` that produces and displays that expression in x and y.&lt;/p&gt;
&lt;p&gt;Another variation is,&lt;/p&gt;
&lt;pre&gt;&amp;gt; restart:

&amp;gt; a:=5*x^2-3*y^3:      
&amp;gt; b:=3*x^2+10*y^3:     

&amp;gt; c:='a+b';

                                  c := a + b

&amp;gt; c;

                                     2      3
                                  8 x  + 7 y

&amp;gt; eval(c,1);

                                     a + b
&lt;/pre&gt;
&lt;p&gt;You could also study the evaluation rules within procedures, which differ from those for the "top level." The manuals should help here.&lt;/p&gt;
&lt;p&gt;You might also consider the somewhat related topic of command history.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>143967</guid>
      <pubDate>Wed, 27 Feb 2013 21:47:17 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
    <item>
      <title>eval(c,1) etc.</title>
      <link>http://www.mapleprimes.com/questions/143966-Variables-Hidden-Evaluation?ref=Feed:MaplePrimes:Variable's hidden evaluation:Comments#answer143968</link>
      <itunes:summary>&lt;p&gt;The way Maple works this is not possible as you entered the commands. &lt;br&gt;No problem if you defined c before a and b or if later you defined c:='a+b'.&lt;br&gt;&lt;br&gt;restart;&lt;br&gt;a:=5*x^2-3*y^3:&lt;br&gt;b:=3*x^2+10*y^3:&lt;br&gt;c:='a+b';&lt;br&gt;c;&lt;br&gt;eval(c,1);&lt;br&gt;restart;&lt;br&gt;c:=a+b;&lt;br&gt;a:=5*x^2-3*y^3:&lt;br&gt;b:=3*x^2+10*y^3:&lt;br&gt;c;&lt;br&gt;eval(c,1);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;The way Maple works this is not possible as you entered the commands. &lt;br&gt;No problem if you defined c before a and b or if later you defined c:='a+b'.&lt;br&gt;&lt;br&gt;restart;&lt;br&gt;a:=5*x^2-3*y^3:&lt;br&gt;b:=3*x^2+10*y^3:&lt;br&gt;c:='a+b';&lt;br&gt;c;&lt;br&gt;eval(c,1);&lt;br&gt;restart;&lt;br&gt;c:=a+b;&lt;br&gt;a:=5*x^2-3*y^3:&lt;br&gt;b:=3*x^2+10*y^3:&lt;br&gt;c;&lt;br&gt;eval(c,1);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>143968</guid>
      <pubDate>Wed, 27 Feb 2013 21:50:35 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>So always use '</title>
      <link>http://www.mapleprimes.com/questions/143966-Variables-Hidden-Evaluation?ref=Feed:MaplePrimes:Variable's hidden evaluation:Comments#answer143969</link>
      <itunes:summary>&lt;p&gt;So would it then be wise then for everyone assigning values to use the uneval form in everything?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;So would it then be wise then for everyone assigning values to use the uneval form in everything?&lt;/p&gt;</description>
      <guid>143969</guid>
      <pubDate>Wed, 27 Feb 2013 22:21:28 Z</pubDate>
      <itunes:author>Christopher2222</itunes:author>
      <author>Christopher2222</author>
    </item>
    <item>
      <title>no</title>
      <link>http://www.mapleprimes.com/questions/143966-Variables-Hidden-Evaluation?ref=Feed:MaplePrimes:Variable's hidden evaluation:Comments#comment143986</link>
      <itunes:summary>&lt;p&gt;No, it would be very unwise.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;No, it would be very unwise.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>143986</guid>
      <pubDate>Thu, 28 Feb 2013 05:44:21 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
  </channel>
</rss>