<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Multivariable function in matrix form</title>
    <link>http://www.mapleprimes.com/questions/130011-Multivariable-Function-In-Matrix-Form</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 08:22:28 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 08:22:28 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Multivariable function in matrix form</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Multivariable function in matrix form</title>
      <link>http://www.mapleprimes.com/questions/130011-Multivariable-Function-In-Matrix-Form</link>
    </image>
    <item>
      <title>As to your first question:</title>
      <link>http://www.mapleprimes.com/questions/130011-Multivariable-Function-In-Matrix-Form?ref=Feed:MaplePrimes:Multivariable function in matrix form:Comments#answer130065</link>
      <itunes:summary>&lt;p&gt;You can't really define &lt;em&gt;w&lt;/em&gt;&amp;nbsp;as &lt;strong&gt;both&lt;/strong&gt;&amp;nbsp;a bivariate function &lt;em&gt;w&lt;/em&gt;(&lt;span&gt;&amp;xi;,&lt;em&gt;s&lt;/em&gt;)&lt;/span&gt;&amp;nbsp;&lt;strong&gt;and&lt;/strong&gt;&amp;nbsp;a univariate function &lt;em&gt;w&lt;/em&gt;(&amp;xi;). I'd suggest using notation like&lt;/p&gt;
&lt;pre&gt;w2 := (&amp;xi;,s) -&amp;gt; N(s) . w1(&amp;xi;);&lt;/pre&gt;
&lt;p&gt;where &lt;em&gt;w&lt;/em&gt;2 is the bivariate and &lt;em&gt;w&lt;/em&gt;1 the univariate function. Note that I wrote the function definition in the non-ambiguous arrow notation; writing it as&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;w2(&amp;xi;,s) := N(s) . w1(&amp;xi;);&lt;/pre&gt;
&lt;p&gt;may work, depending on your settings, but the former always does. Note also the use of the period (.) for matrix and vector multiplication.&lt;/p&gt;
&lt;p&gt;If you show us a little more of what you're trying to achieve, I bet we'll find out that it's even better to not&amp;nbsp;define &lt;em&gt;w&lt;/em&gt;2 itself, but just a definition equation&lt;/p&gt;
&lt;pre&gt;w2def := w2 = (&amp;xi;,s) -&amp;gt; N(s) . w1(&amp;xi;);&lt;/pre&gt;
&lt;p&gt;and then use &lt;em&gt;eval&lt;/em&gt;(&lt;em&gt;something&lt;/em&gt;, &lt;em&gt;w&lt;/em&gt;2&lt;em&gt;def&lt;/em&gt;) in some well-chosen spots. This way, you can control when Maple applies this definition of &lt;em&gt;w&lt;/em&gt;2; otherwise, it is always applied immediately when Maple encounters the function &lt;em&gt;w&lt;/em&gt;2&amp;nbsp;and you will never get a result that involves &lt;em&gt;w&lt;/em&gt;2.&lt;/p&gt;
&lt;p&gt;As to your other question: this is not always easy. &amp;nbsp;We would need to see a bit more of the problem you're trying to solve in order to answer it. By the way, it may or may not work to use the same symbol &lt;em&gt;s&lt;/em&gt;&amp;nbsp;for the index of &lt;em&gt;x&lt;/em&gt;&amp;nbsp;and its argument; if you substitute a value like 2 or 5 for &lt;em&gt;s&lt;/em&gt;, you would get&amp;nbsp;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;&lt;span&gt;2&lt;/span&gt;&lt;/sub&gt;&lt;span&gt;(2) and&amp;nbsp;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;5&lt;/sub&gt;(5), not&amp;nbsp;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;&lt;em&gt;s&lt;/em&gt;&lt;/sub&gt;(2) or&amp;nbsp;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;&lt;em&gt;s&lt;/em&gt;&lt;/sub&gt;(5). It might be better to write this as&amp;nbsp;&lt;em&gt;xs&lt;/em&gt;(&lt;em&gt;s&lt;/em&gt;) - Maple will never break up a single "word" like that. (There are other solutions involving things called "inert identifiers" - but I'd advise to do that only if it's really worth the added complexity.)&lt;/span&gt;&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;You can't really define &lt;em&gt;w&lt;/em&gt;&amp;nbsp;as &lt;strong&gt;both&lt;/strong&gt;&amp;nbsp;a bivariate function &lt;em&gt;w&lt;/em&gt;(&lt;span&gt;&amp;xi;,&lt;em&gt;s&lt;/em&gt;)&lt;/span&gt;&amp;nbsp;&lt;strong&gt;and&lt;/strong&gt;&amp;nbsp;a univariate function &lt;em&gt;w&lt;/em&gt;(&amp;xi;). I'd suggest using notation like&lt;/p&gt;
&lt;pre&gt;w2 := (&amp;xi;,s) -&amp;gt; N(s) . w1(&amp;xi;);&lt;/pre&gt;
&lt;p&gt;where &lt;em&gt;w&lt;/em&gt;2 is the bivariate and &lt;em&gt;w&lt;/em&gt;1 the univariate function. Note that I wrote the function definition in the non-ambiguous arrow notation; writing it as&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;w2(&amp;xi;,s) := N(s) . w1(&amp;xi;);&lt;/pre&gt;
&lt;p&gt;may work, depending on your settings, but the former always does. Note also the use of the period (.) for matrix and vector multiplication.&lt;/p&gt;
&lt;p&gt;If you show us a little more of what you're trying to achieve, I bet we'll find out that it's even better to not&amp;nbsp;define &lt;em&gt;w&lt;/em&gt;2 itself, but just a definition equation&lt;/p&gt;
&lt;pre&gt;w2def := w2 = (&amp;xi;,s) -&amp;gt; N(s) . w1(&amp;xi;);&lt;/pre&gt;
&lt;p&gt;and then use &lt;em&gt;eval&lt;/em&gt;(&lt;em&gt;something&lt;/em&gt;, &lt;em&gt;w&lt;/em&gt;2&lt;em&gt;def&lt;/em&gt;) in some well-chosen spots. This way, you can control when Maple applies this definition of &lt;em&gt;w&lt;/em&gt;2; otherwise, it is always applied immediately when Maple encounters the function &lt;em&gt;w&lt;/em&gt;2&amp;nbsp;and you will never get a result that involves &lt;em&gt;w&lt;/em&gt;2.&lt;/p&gt;
&lt;p&gt;As to your other question: this is not always easy. &amp;nbsp;We would need to see a bit more of the problem you're trying to solve in order to answer it. By the way, it may or may not work to use the same symbol &lt;em&gt;s&lt;/em&gt;&amp;nbsp;for the index of &lt;em&gt;x&lt;/em&gt;&amp;nbsp;and its argument; if you substitute a value like 2 or 5 for &lt;em&gt;s&lt;/em&gt;, you would get&amp;nbsp;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;&lt;span&gt;2&lt;/span&gt;&lt;/sub&gt;&lt;span&gt;(2) and&amp;nbsp;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;5&lt;/sub&gt;(5), not&amp;nbsp;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;&lt;em&gt;s&lt;/em&gt;&lt;/sub&gt;(2) or&amp;nbsp;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;&lt;em&gt;s&lt;/em&gt;&lt;/sub&gt;(5). It might be better to write this as&amp;nbsp;&lt;em&gt;xs&lt;/em&gt;(&lt;em&gt;s&lt;/em&gt;) - Maple will never break up a single "word" like that. (There are other solutions involving things called "inert identifiers" - but I'd advise to do that only if it's really worth the added complexity.)&lt;/span&gt;&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>130065</guid>
      <pubDate>Thu, 26 Jan 2012 09:23:15 Z</pubDate>
      <itunes:author>epostma</itunes:author>
      <author>epostma</author>
    </item>
  </channel>
</rss>