<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Maintaining function arguments when creating a matrix using function</title>
    <link>http://www.mapleprimes.com/questions/124535-Maintaining-Function-Arguments-When</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 19:16:32 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 19:16:32 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Maintaining function arguments when creating a matrix using function</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Maintaining function arguments when creating a matrix using function</title>
      <link>http://www.mapleprimes.com/questions/124535-Maintaining-Function-Arguments-When</link>
    </image>
    <item>
      <title>Try this</title>
      <link>http://www.mapleprimes.com/questions/124535-Maintaining-Function-Arguments-When?ref=Feed:MaplePrimes:Maintaining function arguments when creating a matrix using function:Comments#answer124540</link>
      <itunes:summary>&lt;pre&gt;&lt;span class="mainBody document"&gt;MyMatrix := (a, b, c) -&amp;gt; Matrix(3,3,(k,l)-&amp;gt;MyFunction(a,b,c,k,l));&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span class="mainBody document"&gt;By the way, I think you wanted &lt;em&gt;MyMatrix&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;, &lt;em&gt;y&lt;/em&gt;, &lt;em&gt;z&lt;/em&gt;) to obtain that matrix - right? What you typed for MySecondFunction doesn't make too much sense - you specify a function of &lt;em&gt;x&lt;/em&gt;, &lt;em&gt;y&lt;/em&gt;, and &lt;em&gt;z&lt;/em&gt;, but neither of those variables occur on the right hand side of the arrow.&lt;br&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="mainBody document"&gt;Hope this helps,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="mainBody document"&gt;Erik Postma&lt;br&gt;Maplesoft.&lt;br&gt;&lt;/span&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;pre&gt;&lt;span class="mainBody document"&gt;MyMatrix := (a, b, c) -&amp;gt; Matrix(3,3,(k,l)-&amp;gt;MyFunction(a,b,c,k,l));&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span class="mainBody document"&gt;By the way, I think you wanted &lt;em&gt;MyMatrix&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;, &lt;em&gt;y&lt;/em&gt;, &lt;em&gt;z&lt;/em&gt;) to obtain that matrix - right? What you typed for MySecondFunction doesn't make too much sense - you specify a function of &lt;em&gt;x&lt;/em&gt;, &lt;em&gt;y&lt;/em&gt;, and &lt;em&gt;z&lt;/em&gt;, but neither of those variables occur on the right hand side of the arrow.&lt;br&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="mainBody document"&gt;Hope this helps,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="mainBody document"&gt;Erik Postma&lt;br&gt;Maplesoft.&lt;br&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <guid>124540</guid>
      <pubDate>Tue, 09 Aug 2011 21:58:39 Z</pubDate>
      <itunes:author>epostma</itunes:author>
      <author>epostma</author>
    </item>
    <item>
      <title>Thanks!</title>
      <link>http://www.mapleprimes.com/questions/124535-Maintaining-Function-Arguments-When?ref=Feed:MaplePrimes:Maintaining function arguments when creating a matrix using function:Comments#comment124543</link>
      <itunes:summary>&lt;p&gt;Thanks Erik, for the quick answer.&lt;/p&gt;
&lt;p&gt;I actually tried that before, since I thought this to be the answer, but obviuously the error was down the line, as you pointed out:&lt;/p&gt;
&lt;p&gt;What I thought I was doing&amp;nbsp; with this:&lt;/p&gt;
&lt;p&gt;MySecondFunction:=(x,y,z)-&amp;gt;MyMatrix(a,b,c);&lt;/p&gt;
&lt;p&gt;was creating an new function where the variables a, b and c are substituted by x, y, and z.&lt;/p&gt;
&lt;p&gt;So I should have used:&lt;/p&gt;
&lt;p&gt;MySecondFunction:=(x,y,z)-&amp;gt;MyMatrix(x,y,z);&lt;/p&gt;
&lt;p&gt;which gives the correct output.&lt;/p&gt;
&lt;p&gt;Thanks again for your quick answer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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 Erik, for the quick answer.&lt;/p&gt;
&lt;p&gt;I actually tried that before, since I thought this to be the answer, but obviuously the error was down the line, as you pointed out:&lt;/p&gt;
&lt;p&gt;What I thought I was doing&amp;nbsp; with this:&lt;/p&gt;
&lt;p&gt;MySecondFunction:=(x,y,z)-&amp;gt;MyMatrix(a,b,c);&lt;/p&gt;
&lt;p&gt;was creating an new function where the variables a, b and c are substituted by x, y, and z.&lt;/p&gt;
&lt;p&gt;So I should have used:&lt;/p&gt;
&lt;p&gt;MySecondFunction:=(x,y,z)-&amp;gt;MyMatrix(x,y,z);&lt;/p&gt;
&lt;p&gt;which gives the correct output.&lt;/p&gt;
&lt;p&gt;Thanks again for your quick answer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>124543</guid>
      <pubDate>Tue, 09 Aug 2011 23:02:46 Z</pubDate>
      <itunes:author>MRI_user</itunes:author>
      <author>MRI_user</author>
    </item>
    <item>
      <title>Quick note</title>
      <link>http://www.mapleprimes.com/questions/124535-Maintaining-Function-Arguments-When?ref=Feed:MaplePrimes:Maintaining function arguments when creating a matrix using function:Comments#comment124551</link>
      <itunes:summary>&lt;p&gt;Hi MRI_user,&lt;/p&gt;
&lt;p&gt;Glad that this works for you. Just a quick note - with this definition, &lt;em&gt;MySecondFunction&lt;/em&gt; and &lt;em&gt;MyMatrix&lt;/em&gt; are functionally equivalent. For any values &lt;em&gt;u&lt;/em&gt;, &lt;em&gt;v&lt;/em&gt;, &lt;em&gt;w&lt;/em&gt;, we have that &lt;em&gt;MySecondFunction&lt;/em&gt;(&lt;em&gt;u&lt;/em&gt;, &lt;em&gt;v&lt;/em&gt;, &lt;em&gt;w&lt;/em&gt;) and &lt;em&gt;MyMatrix&lt;/em&gt;(&lt;em&gt;u&lt;/em&gt;, &lt;em&gt;v&lt;/em&gt;, &lt;em&gt;w&lt;/em&gt;) return identical matrices.&lt;/p&gt;
&lt;p&gt;Erik.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Hi MRI_user,&lt;/p&gt;
&lt;p&gt;Glad that this works for you. Just a quick note - with this definition, &lt;em&gt;MySecondFunction&lt;/em&gt; and &lt;em&gt;MyMatrix&lt;/em&gt; are functionally equivalent. For any values &lt;em&gt;u&lt;/em&gt;, &lt;em&gt;v&lt;/em&gt;, &lt;em&gt;w&lt;/em&gt;, we have that &lt;em&gt;MySecondFunction&lt;/em&gt;(&lt;em&gt;u&lt;/em&gt;, &lt;em&gt;v&lt;/em&gt;, &lt;em&gt;w&lt;/em&gt;) and &lt;em&gt;MyMatrix&lt;/em&gt;(&lt;em&gt;u&lt;/em&gt;, &lt;em&gt;v&lt;/em&gt;, &lt;em&gt;w&lt;/em&gt;) return identical matrices.&lt;/p&gt;
&lt;p&gt;Erik.&lt;/p&gt;</description>
      <guid>124551</guid>
      <pubDate>Wed, 10 Aug 2011 00:28:51 Z</pubDate>
      <itunes:author>epostma</itunes:author>
      <author>epostma</author>
    </item>
  </channel>
</rss>