0 / 34
Scenario

Engineering Equation Solver

๐Ÿ“‹ Context

You're an engineer solving a system of equations from a circuit analysis. Three loops in a circuit give you 3 equations with 3 unknowns (currents). This is exactly what np.linalg.solve is built for.

1
2

Step 1: Set Up the System

๐ŸŽฏ Task

The equations are:
2Iโ‚ + Iโ‚‚ - Iโ‚ƒ = 8
-Iโ‚ + 3Iโ‚‚ + 2Iโ‚ƒ = 1
Iโ‚ - Iโ‚‚ + 4Iโ‚ƒ = 11
Create coefficient matrix A and constants vector b. Print both.

A = np.array([[2,1,-1],[-1,3,2],[1,-1,4]]), b = np.array([8, 1, 11])
exercise.py
โŒ˜โŽ run ยท โŒ˜โ† โ†’ nav
โ–ถ Output
Run your code to see output here.