linsolve - is this a bug

bazcor bazcor at metronet.co.uk
Sun Aug 14 13:09:51 CEST 2011


-->a=[1 3 2;2 1 -1;5 2 1];b=[2;3;4];

-->inv(a)*b
 ans  =
 
    0.55  
    1.05  
  - 0.85  //correct result

-->-linsolve(a,b)
 ans  =
 
    0.55  
    1.05  
  - 0.85  // inverted signs!

I have checked the bug list and there's nothing there, am I using linsolve
correctly? This example comes from a book on scilab but the results of the
operations are not printed in the book.

Any info' appreciated .. Barry

--
View this message in context: http://mailinglists.scilab.org/linsolve-is-this-a-bug-tp3253406p3253406.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list