<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, optional values in a proceduer</title>
    <link>http://www.mapleprimes.com/questions/102790-Optional-Values-In-A-Proceduer</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 17:50:25 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 17:50:25 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, optional values in a proceduer</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, optional values in a proceduer</title>
      <link>http://www.mapleprimes.com/questions/102790-Optional-Values-In-A-Proceduer</link>
    </image>
    <item>
      <title>Hi,
If you have a single optiona you can</title>
      <link>http://www.mapleprimes.com/questions/102790-Optional-Values-In-A-Proceduer?ref=Feed:MaplePrimes:optional values in a proceduer:Comments#answer102795</link>
      <itunes:summary>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you have a single optiona you can use Optional Ordererd Parameter (see &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=parameter_classes)' target='_new'&gt;?parameter_classes)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;something like that will do the job:&lt;/p&gt;
&lt;pre&gt;test:=proc(a,b,c:=NULL)&lt;br&gt;local d;&lt;br&gt;d:=a*b;&lt;br&gt;if c&amp;lt;&amp;gt;NULL then&lt;br&gt;print(c);&lt;br&gt;d:=d*c;&lt;br&gt;end if;&lt;br&gt;print(d);&lt;br&gt;end proc:&lt;/pre&gt;
&lt;pre&gt;&lt;br&gt;test(3,4,6);&lt;br&gt;                                      6&lt;br&gt;                                     72&lt;br&gt;test(3,5);&lt;br&gt;                                     15&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;Otherwise, if you need something more complicated, see &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=overload' target='_new'&gt;?overload&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;S.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you have a single optiona you can use Optional Ordererd Parameter (see &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=parameter_classes)' target='_new'&gt;?parameter_classes)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;something like that will do the job:&lt;/p&gt;
&lt;pre&gt;test:=proc(a,b,c:=NULL)&lt;br&gt;local d;&lt;br&gt;d:=a*b;&lt;br&gt;if c&amp;lt;&amp;gt;NULL then&lt;br&gt;print(c);&lt;br&gt;d:=d*c;&lt;br&gt;end if;&lt;br&gt;print(d);&lt;br&gt;end proc:&lt;/pre&gt;
&lt;pre&gt;&lt;br&gt;test(3,4,6);&lt;br&gt;                                      6&lt;br&gt;                                     72&lt;br&gt;test(3,5);&lt;br&gt;                                     15&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;Otherwise, if you need something more complicated, see &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=overload' target='_new'&gt;?overload&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;S.&lt;/p&gt;</description>
      <guid>102795</guid>
      <pubDate>Wed, 23 Mar 2011 19:36:51 Z</pubDate>
      <itunes:author>sasomao</itunes:author>
      <author>sasomao</author>
    </item>
  </channel>
</rss>