I am creating a script in the Symbian Python library and trying to access the results returned by solveset () and linsolve (). My problem is that the object returned by these functions is of type finiteset, and I want to automatically select some results to re-enter it into other equations. Any body could help me?
Example: I create a list of equations with two unknown variables:
>>>lista=[eq2_1,eq2_2] >>>str(lista) [-3*a1/10 - 3*a2/20 + 1/12, -3*a1/20 - 13*a2/105 + 1/20]
Then enable it using the linsolve () method.
>>>a=linsolve(lista,a1,a2) >>>a {(71/369, 7/41)}
The result is correct, but I cannot get these results in a variable.
O tried files, lists, tuples, indexing commands, but always returned an error. "Finiteset objects do not have the command attribute
python sympy
Plinio Bueno Andrade Silva
source share