[SciPy-User] How to solve a single linear equation

bert wiley bertwiley@gmail....
Fri Oct 22 10:53:27 CDT 2010

   Ive just started using scipy and im learning some algebra. Ive read the
scipy tutorial and noticed they have an example of solving linear equations
and it uses 3 of them and takes a matrice for the params and one for the
constants. How do solve for a single linear equation like this  x+3y+5z =
10  ?   ive tried it like this

A = mat('[1 3 5')
b = mat('[10]')

but i get
raise ValueError, 'expected square matrix'

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20101022/1606c15f/attachment.html 

More information about the SciPy-User mailing list