Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

General solution for a matrix

I have a matrix named p and with the values [-10x1 - 4x2 + 14, -4x1 - 2x2 + 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=...)

I want to provide a general solutions any ideas ?

General solution for a matrix

I have a matrix named p p and with the values

[-10x1
[-10*x1 - 4x2 4*x2 + 14,   -4x1 -4*x1 - 2x2 2*x2 + 6]

6]

when i When I try to solve the matrix with this line: "print(p(p.arguments()[0] line:

print(p(p.arguments()[0] == 0, p.arguments()[1] == 0))"0))

I get this error:

i get this error:

ValueError: use named arguments, like EXPR(x=..., y=...)

y=...)

I want to provide a general solutions any ideas ?solution. Any ideas?

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=...)

I In general i want to provide a general solution. Any ideas?use something like this

print(p([i == j for i,j in zip(f.arguments(), x)]))

But it reproduce the same error

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 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

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)]))

x)]))

But it reproduce the same error