How do I find specific solutions of a system of equations with infinite solutions using sympy?

Viewed 82

Here is my prompt: Use sympy to determine a set of solutions. For each set of solutions, provide at least two examples of solutions when there is more than one possible.

x,y,z = sy.symbols('x y z')
eq1 = sy.Eq(3*x + 4*y + z, x)
eq2 = sy.Eq(9*x + y - 4*(z**2),0)
result = sy.solve([eq1,eq2],(x,y,z))
print(result)

This code works, however I am struggling to figure out how to show the example solutions for the code. I can't use any assert claims since I'm not working with callable function, so I struggling to figure this part out.

1 Answers
Related