[scilab-Users] linsolve - is this a bug

Serge Steer serge.steer at inria.fr
Sun Aug 14 22:24:59 CEST 2011


No it is not a bug. the linsolve help page says linsolve solves ax+b=0 while  inv(a)*b or better a\b solves ax=b or equivalently ax-b=0

Serge Steer 

INRIA

----- Mail original -----
> De: "bazcor" <bazcor at metronet.co.uk>
> À: users at lists.scilab.org
> Envoyé: Dimanche 14 Août 2011 13:14:33
> Objet: [scilab-Users] linsolve - is this a bug
> -->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
> 
> is this a bug? I've checked the bug list and there's nothing
> there,maybe I'm
> using linsolve inappropriately?
> 
> TIA for any comments .. Barry
> 
> 
> --
> View this message in context:
> http://mailinglists.scilab.org/linsolve-is-this-a-bug-tp3253410p3253410.html
> Sent from the Scilab users - Mailing Lists Archives mailing list
> archive at Nabble.com.



More information about the users mailing list