<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, vector addition with evalm?</title>
    <link>http://www.mapleprimes.com/questions/37178-Vector-Addition-With-Evalm</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:30 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 17:50:30 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, vector addition with evalm?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, vector addition with evalm?</title>
      <link>http://www.mapleprimes.com/questions/37178-Vector-Addition-With-Evalm</link>
    </image>
    <item>
      <title>VectorAdd</title>
      <link>http://www.mapleprimes.com/questions/37178-Vector-Addition-With-Evalm?ref=Feed:MaplePrimes:vector addition with evalm?:Comments#answer65374</link>
      <itunes:summary>&lt;p&gt;If you want to add two vectors of the same size, try using LinearAlgebra[VectorAdd].&lt;/p&gt;
&lt;p&gt;-Scott&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;If you want to add two vectors of the same size, try using LinearAlgebra[VectorAdd].&lt;/p&gt;
&lt;p&gt;-Scott&lt;/p&gt;</description>
      <guid>65374</guid>
      <pubDate>Wed, 17 Jun 2009 23:09:01 Z</pubDate>
      <itunes:author>Scott03</itunes:author>
      <author>Scott03</author>
    </item>
    <item>
      <title>works for me</title>
      <link>http://www.mapleprimes.com/questions/37178-Vector-Addition-With-Evalm?ref=Feed:MaplePrimes:vector addition with evalm?:Comments#answer65375</link>
      <itunes:summary>Maple 12, both of these work:

A := vector([a,b,c]); B := vector([1,2,3]);
evalm(A+B);
A := Vector([a,b,c]); B := Vector([1,2,3]);
evalm(A+B);


</itunes:summary>
      <description>Maple 12, both of these work:

A := vector([a,b,c]); B := vector([1,2,3]);
evalm(A+B);
A := Vector([a,b,c]); B := Vector([1,2,3]);
evalm(A+B);


</description>
      <guid>65375</guid>
      <pubDate>Thu, 18 Jun 2009 18:39:40 Z</pubDate>
      <itunes:author>edgar</itunes:author>
      <author>edgar</author>
    </item>
    <item>
      <title>code</title>
      <link>http://www.mapleprimes.com/questions/37178-Vector-Addition-With-Evalm?ref=Feed:MaplePrimes:vector addition with evalm?:Comments#answer65376</link>
      <itunes:summary>&lt;p&gt;It's difficult to answer this well, without knowing what your code does. You may need to paste or upload an example of it going wrong for you.&lt;/p&gt;
&lt;p&gt;Some advice can still be given:&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Vector() is different from vector().&lt;/li&gt;
    &lt;li&gt;evalm() is not appropriate for uppercase Vector or Matrix.&lt;/li&gt;
    &lt;li&gt;A+B should work directly for Vectors A and B. (It's a shortcut to LinearAlgebra:-VectorAdd.)&lt;/li&gt;
    &lt;li&gt;row Vectors are different from column Vectors.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The error message &amp;quot;invalid arguments&amp;quot; from rtable/Sum arises when one attempts to add mismatched objects. For example,&lt;/p&gt;
&lt;pre&gt;
&amp;gt; V1:=Vector(2):
&amp;gt; V2:=Vector(5):
&amp;gt; V3:=Vector[row](2):
&amp;gt; M:=Matrix(1..2,1):

&amp;gt; V1+V2: # size mismatch
Error, (in rtable/Sum) invalid arguments
&amp;gt; V1+V2[1..2]:  # ok

&amp;gt; V1+V3: # orientation mismatch
Error, (in rtable/Sum) invalid arguments
&amp;gt; V1+V3^%T:  # ok

&amp;gt; V1+M: # object mismatch
Error, (in rtable/Sum) invalid arguments
&amp;gt; V1+convert(M,Vector): # ok
&lt;/pre&gt;
&lt;p&gt;Did I see you using Statistics in another post? It produces row Vectors, while the default for the Vector() constructor is column vectors. Perhaps that is your issue.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; with(Statistics):
&amp;gt; V := Sample(Normal(0,1),2);
              V := [-0.479341933636560025, 0.784173699733298979]
 
&amp;gt; op(0,V);
                                  Vector[row]
 
&amp;gt; type(V,'Vector[column]');
                                     false
 
&amp;gt; type(V,'Vector[row]');
                                     true
 
&amp;gt; type(V,'Vector');
                                     true
 
&amp;gt; V + Vector(2,[a,b]);  # orientation mismatch
Error, (in rtable/Sum) invalid arguments

&amp;gt; V + Vector(2)^%T;  # transpose either, to match
                 [-0.479341933636560025, 0.784173699733298979]
 
&amp;gt; with(LinearAlgebra):
&amp;gt; V + Transpose(Vector(2));  # transpose either, to match
                 [-0.479341933636560025, 0.784173699733298979]
&lt;/pre&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It's difficult to answer this well, without knowing what your code does. You may need to paste or upload an example of it going wrong for you.&lt;/p&gt;
&lt;p&gt;Some advice can still be given:&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Vector() is different from vector().&lt;/li&gt;
    &lt;li&gt;evalm() is not appropriate for uppercase Vector or Matrix.&lt;/li&gt;
    &lt;li&gt;A+B should work directly for Vectors A and B. (It's a shortcut to LinearAlgebra:-VectorAdd.)&lt;/li&gt;
    &lt;li&gt;row Vectors are different from column Vectors.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The error message &amp;quot;invalid arguments&amp;quot; from rtable/Sum arises when one attempts to add mismatched objects. For example,&lt;/p&gt;
&lt;pre&gt;
&amp;gt; V1:=Vector(2):
&amp;gt; V2:=Vector(5):
&amp;gt; V3:=Vector[row](2):
&amp;gt; M:=Matrix(1..2,1):

&amp;gt; V1+V2: # size mismatch
Error, (in rtable/Sum) invalid arguments
&amp;gt; V1+V2[1..2]:  # ok

&amp;gt; V1+V3: # orientation mismatch
Error, (in rtable/Sum) invalid arguments
&amp;gt; V1+V3^%T:  # ok

&amp;gt; V1+M: # object mismatch
Error, (in rtable/Sum) invalid arguments
&amp;gt; V1+convert(M,Vector): # ok
&lt;/pre&gt;
&lt;p&gt;Did I see you using Statistics in another post? It produces row Vectors, while the default for the Vector() constructor is column vectors. Perhaps that is your issue.&lt;/p&gt;
&lt;pre&gt;
&amp;gt; with(Statistics):
&amp;gt; V := Sample(Normal(0,1),2);
              V := [-0.479341933636560025, 0.784173699733298979]
 
&amp;gt; op(0,V);
                                  Vector[row]
 
&amp;gt; type(V,'Vector[column]');
                                     false
 
&amp;gt; type(V,'Vector[row]');
                                     true
 
&amp;gt; type(V,'Vector');
                                     true
 
&amp;gt; V + Vector(2,[a,b]);  # orientation mismatch
Error, (in rtable/Sum) invalid arguments

&amp;gt; V + Vector(2)^%T;  # transpose either, to match
                 [-0.479341933636560025, 0.784173699733298979]
 
&amp;gt; with(LinearAlgebra):
&amp;gt; V + Transpose(Vector(2));  # transpose either, to match
                 [-0.479341933636560025, 0.784173699733298979]
&lt;/pre&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>65376</guid>
      <pubDate>Thu, 18 Jun 2009 19:10:50 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
  </channel>
</rss>