<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Return Values in Procedures</title>
    <link>http://www.mapleprimes.com/questions/137526-Return-Values-In-Procedures</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 07:14:15 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 07:14:15 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Return Values in Procedures</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Return Values in Procedures</title>
      <link>http://www.mapleprimes.com/questions/137526-Return-Values-In-Procedures</link>
    </image>
    <item>
      <title>!=, and formal parameters</title>
      <link>http://www.mapleprimes.com/questions/137526-Return-Values-In-Procedures?ref=Feed:MaplePrimes:Return Values in Procedures:Comments#answer137528</link>
      <itunes:summary>&lt;p&gt;The first problem is that not-equal is &amp;lt;&amp;gt; rather than != in Maple.&lt;/p&gt;
&lt;p&gt;The second problem is that you cannot assign to the formal parameter that way. Easiest is to just use a pair of locals.&lt;/p&gt;
&lt;pre&gt;Egcd := proc(a, b)
local A, B, temp;
   A,B := a,b;
   while B &amp;lt;&amp;gt; 0 do
      temp := B;
      B := A mod B;
      A := temp;
   end do;
   return A;  
end proc;
&lt;/pre&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;The first problem is that not-equal is &amp;lt;&amp;gt; rather than != in Maple.&lt;/p&gt;
&lt;p&gt;The second problem is that you cannot assign to the formal parameter that way. Easiest is to just use a pair of locals.&lt;/p&gt;
&lt;pre&gt;Egcd := proc(a, b)
local A, B, temp;
   A,B := a,b;
   while B &amp;lt;&amp;gt; 0 do
      temp := B;
      B := A mod B;
      A := temp;
   end do;
   return A;  
end proc;
&lt;/pre&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>137528</guid>
      <pubDate>Thu, 20 Sep 2012 05:03:03 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
  </channel>
</rss>