Coding agents know NumPy and SciPy well, but they often reach for the first solution that works: a Python loop instead of broadcasting, an explicit inverse instead of a solver, an integrator with default tolerances that do not suit your problem. This six-week course on NumPy and SciPy with coding agents shows how to phrase tasks so that the agent chooses suitable routines, and how to secure results with reference values, tolerances and tests. Each week you tackle a typical engineering or science problem and then transfer the approach to your own code.
Who the NumPy and SciPy course is for
Engineers, physicists, doctoral researchers and computing teams who already use Python for calculations and want to apply coding agents to numerical work in a targeted way.
What you'll walk away with
- Use arrays, broadcasting and vectorisation so that agent-generated code stays readable and fast
- Have the agent choose the right SciPy routine for linear systems, optimisation, integration and interpolation
- Set tolerances and stopping criteria deliberately and evaluate convergence messages
- Secure results with analytical solutions, reference values and pytest tests
- Maintain an instruction file with numerical conventions for your team
Typical scenarios
- An engineering consultancy replaces a hand-written Newton iteration with scipy.optimize and uses test cases to confirm convergence and accuracy for every load case.
- A physics group smooths measurement data with scipy.interpolate and compares several methods on data whose underlying curve is known.
- In a doctoral project, an analysis with nested loops over large arrays is sped up, and tests show that the results have not changed.
Does this fit your team?
Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.
What the NumPy and SciPy course covers
- Week 1: Arrays and vectorisationBroadcasting, indexing and memory layout; you have loop code rewritten and check the result.
- Week 2: Linear algebraSolvers instead of inverses, decompositions, condition numbers and sparse matrices with scipy.sparse.
- Week 3: Optimisation and root findingscipy.optimize with starting values, bounds and constraints; reading convergence messages correctly.
- Week 4: Integration and interpolationQuadrature, splines and error estimates on examples with known solutions.
- Week 5: Tests and tolerancesRelative and absolute tolerances, numpy.testing, pytest and reference data as guard rails for the agent.
- Week 6: Your own codeYou rework a script from your daily work and present the approach and checks to the group.
Before the NumPy and SciPy course: prerequisites
- Confident basic Python and some experience with NumPy
- Linear algebra and calculus at the level of an engineering or science degree
- An environment with Python, Jupyter and a coding agent such as Claude Code
Materials you keep
- Notebooks for each week with exercises, solutions and tests
- An instruction file with numerical conventions for coding agents
- Your reworked script with its test suite