Omniadisce

Computational physics 12.2: A matrix, a table of numbers

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

  • Write a set of equations as a matrix A (one row per equation, one column per unknown) and a list b
  • Build a matrix in NumPy from its rows, and pick out a number with A[row, column]
  • Work out A @ x, and use it to test whether x solves the equations
  • Keep all three currents as unknowns, with a 0 where an unknown is missing

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

The steps

  1. Line them up
  2. Row and column
  3. A matrix in NumPy
  4. Build the matrix
  5. A matrix times the unknowns
  6. Left sides at once
  7. A wrong guess
  8. Keep all three unknowns
  9. Why the zero?
  10. The loop row
  11. Why a table?

Discussion 0 comments

Log in to join the discussion.

× Enlarged view