Il 30/11/2011 20:17, Th ha scritto:
Dear All,
What about this one ?
var('a,b,c,d,x,y')
def equations(a,b,c,d,x,y):
return [a*x+b*y==1,c*x+d*y==2]
print solve(equations(a,b,c,d,x,y),[x,y])
print solve(equations(a,a,c,c,x,y),[x,y])
The second one has no solutions since it solves
ax+ay==1
Dear All,
I am new to sage (converting from mathcad), so please forgive my basic
question.
I am trying to solve system of equations in a symbolic way, as a
simple example:
var('a,b,c,d,d1,d2,d3,x,x1,x2,x3,y,y1,y2,y3')
symsys=[
a+b*x1+c*y1==d1,
a+b*x2+c*y2==d2,
a+b*x3+c*y3==d3
]
result=solv