Week 9 • Thursday

Block 87: SymPy: Equation Solving

Solve algebraic equations and systems symbolically.

Concepts

Code Examples

See exercise below.

Exercise

Solve x^2 - 4 = 0 and x^2 + x - 6 = 0 symbolically. Solve the system: 2x + y = 5, x - y = 1 symbolically. Compare with numpy.linalg.solve.

Homework

When would symbolic solving fail or be impractical? What do you do then?