Theoretical physics with sympy
summary
Introduces SymPy basics and then applies them to a concrete Heisenberg-style model of 2D layered magnets, deriving symbolic expressions, simplifying with CSE, solving for the phase angle and producing a numerical estimate of a transition point (analytic checks like 1/6 appear), converting to fast functions with lambdify + numpy vectorize, scanning parameter space to build phase diagrams and psychedelic-looking figures, and notes that heavy simplifications can take minutes but the workflow from symbolics to numeric plots works end to end.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 3:08variables
- 6:26functions
- 8:45solving equations
- 11:55CSE
- 13:00Substitution
- 15:25Linear algebra
- 17:00Magnetism
- 19:05Heisenberg model
- 19:58Spiral unser
- 21:38Image sets
- 22:32Numerical solutions
- 23:27Combining solutions
- 27:33Syntax tree
- 29:42Plots
related talks
28mDerivations, Not Just Simulations: Teaching Applied Mathematics with Scientific Python
30mMultibody Simulation Using sympy, scipy and vpython
34mPython ate my Homework!
33mMaths Whimsy with Python
47mIPython and Sympy to Develop a Kalman Filter for Multisensor Data Fusion
32mDoing Math with Python
42mLiberating Education: Free Software in the STEM Classroom
31mThe universe as balls and springs: molecular dynamics in Python
