<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Solve equations: # of variables less than # of eqns</title>
    <link>http://www.mapleprimes.com/questions/142477-Solve-Equations--Of-Variables-Less</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 09:27:55 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 09:27:55 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Solve equations: # of variables less than # of eqns</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Solve equations: # of variables less than # of eqns</title>
      <link>http://www.mapleprimes.com/questions/142477-Solve-Equations--Of-Variables-Less</link>
    </image>
    <item>
      <title>Use LinearAlgebra:-LeastSquares</title>
      <link>http://www.mapleprimes.com/questions/142477-Solve-Equations--Of-Variables-Less?ref=Feed:MaplePrimes:Solve equations: # of variables less than # of eqns:Comments#answer142478</link>
      <itunes:summary>&lt;p&gt;Use &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=LinearAlgebra,LeastSquares:' target='_new'&gt;?LinearAlgebra,LeastSquares:&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &lt;strong&gt;X:= LinearAlgebra:-LeastSquares(A,Y);&lt;/strong&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Use &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=LinearAlgebra,LeastSquares:' target='_new'&gt;?LinearAlgebra,LeastSquares:&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &lt;strong&gt;X:= LinearAlgebra:-LeastSquares(A,Y);&lt;/strong&gt;&lt;/p&gt;</description>
      <guid>142478</guid>
      <pubDate>Mon, 21 Jan 2013 21:27:48 Z</pubDate>
      <itunes:author>Carl Love</itunes:author>
      <author>Carl Love</author>
    </item>
    <item>
      <title>Inconsistent</title>
      <link>http://www.mapleprimes.com/questions/142477-Solve-Equations--Of-Variables-Less?ref=Feed:MaplePrimes:Solve equations: # of variables less than # of eqns:Comments#answer142479</link>
      <itunes:summary>&lt;p&gt;No solution.&lt;/p&gt;
&lt;p&gt;A:=ImportMatrix("G:/MapleDiverse/MaplePrimes/A.txt");&lt;br&gt;Y:=ImportMatrix("G:/MapleDiverse/MaplePrimes/Y.txt");&lt;br&gt;LinearAlgebra:-LinearSolve(A,Y);&lt;br&gt;interface(rtablesize=infinity);&lt;br&gt;LinearAlgebra:-GaussianElimination(&amp;lt;A|Y&amp;gt;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;No solution.&lt;/p&gt;
&lt;p&gt;A:=ImportMatrix("G:/MapleDiverse/MaplePrimes/A.txt");&lt;br&gt;Y:=ImportMatrix("G:/MapleDiverse/MaplePrimes/Y.txt");&lt;br&gt;LinearAlgebra:-LinearSolve(A,Y);&lt;br&gt;interface(rtablesize=infinity);&lt;br&gt;LinearAlgebra:-GaussianElimination(&amp;lt;A|Y&amp;gt;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>142479</guid>
      <pubDate>Mon, 21 Jan 2013 21:30:22 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>some linear algebra</title>
      <link>http://www.mapleprimes.com/questions/142477-Solve-Equations--Of-Variables-Less?ref=Feed:MaplePrimes:Solve equations: # of variables less than # of eqns:Comments#answer142489</link>
      <itunes:summary>&lt;pre&gt;Some Linear Algebra (had to refresh it): you consider IR^7 ---) IR^14, x ---) A.x&lt;br&gt;and it is better to use A:= map(convert,A, rational) etc.&lt;br&gt;&lt;br&gt;The command Rank(A) returns '7', so that is a monomorphism. Likewise you can ask&lt;br&gt;for NullSpace(A), which returns {} (I guess, that the zero vector is meant).&lt;br&gt;&lt;br&gt;In words: if there is any solution for the equation A.x = y, then it is unique.&lt;br&gt;&lt;br&gt;The command LinearSolve(A,y) returns with an error, which tells that there is no&lt;br&gt;solution (I would prefer that as result, not as an error ...).&lt;br&gt;&lt;br&gt;To understand it use the commands "ColumnSpace(A): evalf[100](%): evalf[3](%);"&lt;br&gt;&lt;br&gt;If you have set "interface(rtablesize=infinity)" as Preben Alsholm did, then you&lt;br&gt;see the base vectors for the image of the map: in the first 7 coordinates you will&lt;br&gt;see something like the 'canonical' base, while for the last coordinates you will&lt;br&gt;see entries of magnitude ~ 10^15.&lt;br&gt;&lt;br&gt;Now your y has zeros in the last coordinates and non-zeros in the first coordinates.&lt;br&gt;But the representation (and injectivity or rank) says: the first 7 already uniquely&lt;br&gt;determine a pre-image x. And that does not map to zeros in the last ones.&lt;br&gt;&lt;br&gt;IIRC least square is unique in this sitaution, so it does not make (direct) sense&lt;br&gt;to ask for a better one (except in other norms, but those are equivalent, hence&lt;br&gt;also unique)&lt;br&gt;&lt;br&gt;&lt;br&gt;If CS:=ColumnSpace(A) and y:= y:=convert(Y, Vector), then add(y[j].CS[j], j=1 .. 7)&lt;br&gt;is the exact vector in the image, which has coordinates of y in the first 7 ccordinates&lt;br&gt;(as you can see by %[1 .. 7] and looking at y).&lt;br&gt;&lt;br&gt;The 2-Norm of that - y is ~ 6300, add(y - y[j].CS[j], j=1 .. 7):&amp;nbsp; Norm(%,2); evalf(%);&amp;nbsp;&lt;/pre&gt;</itunes:summary>
      <description>&lt;pre&gt;Some Linear Algebra (had to refresh it): you consider IR^7 ---) IR^14, x ---) A.x&lt;br&gt;and it is better to use A:= map(convert,A, rational) etc.&lt;br&gt;&lt;br&gt;The command Rank(A) returns '7', so that is a monomorphism. Likewise you can ask&lt;br&gt;for NullSpace(A), which returns {} (I guess, that the zero vector is meant).&lt;br&gt;&lt;br&gt;In words: if there is any solution for the equation A.x = y, then it is unique.&lt;br&gt;&lt;br&gt;The command LinearSolve(A,y) returns with an error, which tells that there is no&lt;br&gt;solution (I would prefer that as result, not as an error ...).&lt;br&gt;&lt;br&gt;To understand it use the commands "ColumnSpace(A): evalf[100](%): evalf[3](%);"&lt;br&gt;&lt;br&gt;If you have set "interface(rtablesize=infinity)" as Preben Alsholm did, then you&lt;br&gt;see the base vectors for the image of the map: in the first 7 coordinates you will&lt;br&gt;see something like the 'canonical' base, while for the last coordinates you will&lt;br&gt;see entries of magnitude ~ 10^15.&lt;br&gt;&lt;br&gt;Now your y has zeros in the last coordinates and non-zeros in the first coordinates.&lt;br&gt;But the representation (and injectivity or rank) says: the first 7 already uniquely&lt;br&gt;determine a pre-image x. And that does not map to zeros in the last ones.&lt;br&gt;&lt;br&gt;IIRC least square is unique in this sitaution, so it does not make (direct) sense&lt;br&gt;to ask for a better one (except in other norms, but those are equivalent, hence&lt;br&gt;also unique)&lt;br&gt;&lt;br&gt;&lt;br&gt;If CS:=ColumnSpace(A) and y:= y:=convert(Y, Vector), then add(y[j].CS[j], j=1 .. 7)&lt;br&gt;is the exact vector in the image, which has coordinates of y in the first 7 ccordinates&lt;br&gt;(as you can see by %[1 .. 7] and looking at y).&lt;br&gt;&lt;br&gt;The 2-Norm of that - y is ~ 6300, add(y - y[j].CS[j], j=1 .. 7):&amp;nbsp; Norm(%,2); evalf(%);&amp;nbsp;&lt;/pre&gt;</description>
      <guid>142489</guid>
      <pubDate>Tue, 22 Jan 2013 01:29:46 Z</pubDate>
      <itunes:author>Axel Vogt</itunes:author>
      <author>Axel Vogt</author>
    </item>
    <item>
      <title>Large Error</title>
      <link>http://www.mapleprimes.com/questions/142477-Solve-Equations--Of-Variables-Less?ref=Feed:MaplePrimes:Solve equations: # of variables less than # of eqns:Comments#comment142480</link>
      <itunes:summary>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;Thank you for your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did what you recommend (&lt;span&gt;LeastSquares function), and get X. After that, I compare the result: A.X - Y, but its error is very high (some rows &amp;gt; 10^-1, many rows&amp;gt; 10^-3)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;Thank you for your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did what you recommend (&lt;span&gt;LeastSquares function), and get X. After that, I compare the result: A.X - Y, but its error is very high (some rows &amp;gt; 10^-1, many rows&amp;gt; 10^-3)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;</description>
      <guid>142480</guid>
      <pubDate>Mon, 21 Jan 2013 21:52:46 Z</pubDate>
      <itunes:author>STHence</itunes:author>
      <author>STHence</author>
    </item>
    <item>
      <title>Hi Preben,
Thank you for your help. I strongly</title>
      <link>http://www.mapleprimes.com/questions/142477-Solve-Equations--Of-Variables-Less?ref=Feed:MaplePrimes:Solve equations: # of variables less than # of eqns:Comments#comment142481</link>
      <itunes:summary>&lt;p&gt;Hi Preben,&lt;/p&gt;
&lt;p&gt;Thank you for your help. I strongly belive that these eqns can have good approximated solutions.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Hi Preben,&lt;/p&gt;
&lt;p&gt;Thank you for your help. I strongly belive that these eqns can have good approximated solutions.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</description>
      <guid>142481</guid>
      <pubDate>Mon, 21 Jan 2013 21:55:35 Z</pubDate>
      <itunes:author>STHence</itunes:author>
      <author>STHence</author>
    </item>
    <item>
      <title>Better in what sense?</title>
      <link>http://www.mapleprimes.com/questions/142477-Solve-Equations--Of-Variables-Less?ref=Feed:MaplePrimes:Solve equations: # of variables less than # of eqns:Comments#comment142483</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/142477-Solve-Equations--Of-Variables-Less#comment142481"&gt;@STHence&lt;/a&gt; The LeastSquare solution minimizes the 2-norm of the residual A.X-Y. So in what sense do you expect a better solution than that?&lt;/p&gt;
&lt;p&gt;X:=LinearAlgebra:-LeastSquares(A,Y);&lt;br&gt;A.X-Y:&lt;br&gt;LinearAlgebra:-Norm(%,2);&lt;br&gt;#Returns 0.1478777205&lt;br&gt;#LeastSquare does the same as the following (not codewise):&lt;br&gt;use LinearAlgebra in&lt;br&gt;&amp;nbsp;&amp;nbsp; LinearSolve(Transpose(A).A,Transpose(A).Y)&lt;br&gt;end use;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/142477-Solve-Equations--Of-Variables-Less#comment142481"&gt;@STHence&lt;/a&gt; The LeastSquare solution minimizes the 2-norm of the residual A.X-Y. So in what sense do you expect a better solution than that?&lt;/p&gt;
&lt;p&gt;X:=LinearAlgebra:-LeastSquares(A,Y);&lt;br&gt;A.X-Y:&lt;br&gt;LinearAlgebra:-Norm(%,2);&lt;br&gt;#Returns 0.1478777205&lt;br&gt;#LeastSquare does the same as the following (not codewise):&lt;br&gt;use LinearAlgebra in&lt;br&gt;&amp;nbsp;&amp;nbsp; LinearSolve(Transpose(A).A,Transpose(A).Y)&lt;br&gt;end use;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>142483</guid>
      <pubDate>Mon, 21 Jan 2013 22:22:00 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
  </channel>
</rss>