Philip Mocz·Oct 30, 2025Jaxion: differentiable astrophysics simulationsIn today’s blog post, we’re going behind the scenes of a new software release: Jaxion, a differentiable astrophysics code I’ve been…A response icon2A response icon2
InLevel Up CodingbyPhilip Mocz·Apr 24, 2025Create Your Own Differentiable N-body Simulation (With Python/JAX)For today’s recreational coding exercise, we revisit the gravitational N-body problem and learn how to write a differentiable…A response icon3A response icon3
InLevel Up CodingbyPhilip Mocz·Jun 7, 2024Create Your Own Automatically Differentiable Simulation (With Python/JAX)In today’s recreational coding exercise, we create an automatically differentiable simulation using JAX. Automatic differentiation…A response icon3A response icon3
InLevel Up CodingbyPhilip Mocz·Aug 28, 2023Create Your Own Finite Difference Wave Equation Simulation (With Python)In today’s recreational coding exercise, we will simulate the Wave Equation with the Finite Difference method. We will consider a setup of…
InLevel Up CodingbyPhilip Mocz·Aug 13, 2023Create Your Own Riemann Solver (With Python)In today’s recreational coding exercise, we create an exact Riemann Solver for the Euler equations. The solver finds the solution for the…A response icon1A response icon1
InLevel Up CodingbyPhilip Mocz·Aug 6, 2023Create Your Own Superconductor Simulation (With Python)In today’s recreational coding exercise, we will look at an equation for superconductors, in particular, the time-dependent complex…A response icon1A response icon1
InLevel Up CodingbyPhilip Mocz·Aug 4, 2023Create Your Own Navier-Stokes Spectral Method Fluid Simulation (With Python)For today’s recreational coding exercise, we solve the Navier-Stokes equations for an incompressible viscous fluid. To do so, we will…A response icon8A response icon8
InLevel Up CodingbyPhilip Mocz·Jul 23, 2023Create Your Own Artificial Neural Network for Multi-class Classification (With Python)In today’s recreational coding exercise, we will build an Artificial Neural Network from scratch and train it to classify galaxies. In…A response icon1A response icon1
InLevel Up CodingbyPhilip Mocz·Jun 8, 2023Create Your Own Nested Sampling Algorithm for Bayesian Parameter Fitting and Model Selection (With…In today’s recreational coding exercise, we learn a more advanced and robust Monte Carlo approach for model parameter fitting, which also…
InLevel Up CodingbyPhilip Mocz·May 15, 2023Create Your Own Metropolis-Hastings Markov Chain Monte Carlo Algorithm for Bayesian Inference (With…In today’s recreational coding exercise, we learn how to fit model parameters to data (with error bars) and obtain the most likely…A response icon4A response icon4