Ohmwork
0 XP
A4Math for EE

Python for engineers

Writes correct, tested Python, and uses NumPy and matplotlib to compute, simulate, analyze data and plot; reads and builds binary data and registers; writes state machines, sorts and searches with known costs; builds and solves circuit equations from a netlist; interpolates tables and filters signals in code. Five labs work instrument data, control flow, data structures and tests, signal measurements and plots, and numerical methods for circuits. Every later code lab uses it.

0%0 of 56 pages

130 h · 56 pages · After A1

Unit 1Numbers and strings6
  1. Values, variables and functions2.5 h
  2. Integers, floats and rounding error3 h
  3. Strings, formatting and parsing3 h
  4. Bits, bytes and binary data2.5 h
  5. Lab: instrument data, text and bitsLab · 3 h
  6. Problem set 1Problem set · 4 h
Unit 2The basics5
  1. Making decisions with if3 h
  2. Repeating with for and while3 h
  3. More about functions3 h
  4. Lab: decisions, loops and functionsLab · 3 h
  5. Problem set 2Problem set · 4 h
Unit 3Lists, dictionaries and sets3
  1. Lists3 h
  2. Tuples, dictionaries and sets3 h
  3. Problem set 3Problem set · 4 h
Unit 4Collections4
  1. Iteration patterns3 h
  2. Errors, exceptions and testing3 h
  3. Lab: parts lists, netlists and testsLab · 3 h
  4. Problem set 4Problem set · 4 h
Unit 5Modules and classes4
  1. Modules and the standard library3 h
  2. Classes and objects3 h
  3. State machines3 h
  4. Problem set 5Problem set · 4 h
Unit 6Program structure4
  1. Recursion, bisection and binary search3 h
  2. How running time grows3 h
  3. Sorting3 h
  4. Problem set 6Problem set · 4 h
  1. Midterm examMidterm · 4 h
Unit 7Arrays4
  1. Arrays with NumPy2.5 h
  2. Vectorized arithmetic and masks3 h
  3. Two-dimensional arrays3 h
  4. Problem set 7Problem set · 4 h
Unit 8Arrays and plots4
  1. Plotting signals2.5 h
  2. Plots that communicate3 h
  3. Lab: measuring and plotting signalsLab · 3 h
  4. Problem set 8Problem set · 4 h
Unit 9Complex numbers, equations and calculus in code5
  1. Complex numbers in code2.5 h
  2. Solving equations numerically2.5 h
  3. Building circuit equations in code3 h
  4. Numerical derivatives and integrals3 h
  5. Problem set 9Problem set · 4 h
Unit 10Numerical methods4
  1. Stepping through time2.5 h
  2. Runge-Kutta and step size3 h
  3. Lab: numerical methods for circuitsLab · 3 h
  4. Problem set 10Problem set · 4 h
Unit 11Data8
  1. Reading data and fitting a curve2.5 h
  2. Interpolation and lookup tables2.5 h
  3. Text and CSV data3 h
  4. Statistics of measurements3 h
  5. Random numbers and Monte Carlo3 h
  6. Sampling and the FFT3 h
  7. Filtering signals in code2.5 h
  8. Problem set 11Problem set · 4 h
Unit 12Longer labs3
  1. Mini-project: a grid-frequency logProject · 1.5 h
  2. Project: tolerance analysisProject · 2 h
  3. Problem set 12Problem set · 4 h
  1. Final examFinal exam · 4 h