Omniadisce

Computational physics 12.3: np.linalg.solve

Lesson Beginner

Join free to take this lesson

Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.

11 steps ยท about 25 min

By the end you can

  • Solve A @ I = b with I = np.linalg.solve(A, b), and read which unknown is which
  • Check a solution by working out A @ I and comparing it with b
  • Solve a circuit with three and with four unknown currents
  • Say what "Singular matrix" means: two equations that say the same thing

Who it is for: Anyone who has done lesson 12.2.

The steps

  1. Let NumPy eliminate
  2. Solve it
  3. Which is which?
  4. Any voltages
  5. Always put it back
  6. Put it back
  7. Three unknowns
  8. The same rule twice
  9. Four unknowns
  10. Three batteries
  11. A tool you trust

Discussion 0 comments

Log in to join the discussion.

× Enlarged view