General solution for a matrix
I have a matrix named p
and with the values
[-10*x1 - 4*x2 + 14, -4*x1 - 2*x2 + 6]
When I try to solve the matrix with this line:
print(p(p.arguments()[0] == 0, p.arguments()[1] == 0))
I get this error:
ValueError: use named arguments, like EXPR(x=..., y=...)
In general i want to use something like this, the arguments are x1 and x2 and the x is a list of numbers that it will change on every loop
print(p([i == j for i,j in zip(f.arguments(), x)]))
But it reproduce the same error
Welcome to Ask Sage. Thank you for your question.
Can you provide the actual code you use to define
p
?Please edit your question to do that.