Hi, I am very new to sympy and python, so pardon my simple question
I have a matrix right here like this (4 equations, 3 unknowns)
mat1=
[ 0, 15.0, 10.0, 700.0]
[ 1, 1, 1, 100.0]
[ 0, 10.0, 5.0, 200.0]
[-5.0, 0, 0, 0]
and a list of unknowns
unknown=[y0,y1,y2]
when i try to do this:
solve_linear_system(mat1,*unknown)
I get "None" as my answer
however if i take out one of the lines and turn it to something like this:
[ 0, 15.0, 10.0, 700.0]
[ 0, 10.0, 5.0, 200.0]
[-5.0, 0, 0, 0]
and do the same thing:
solve_linear_system(mat1,*unknown)
I get:
{y0: 0, y1: -60.0000000000000, y2: 160.000000000000}
why is that so? Is there anyway around this?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sympy/-/SBtRHza5ijwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.