Published inLevel Up CodingCreate 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…Apr 24A response icon3Apr 24A response icon3
Published inLevel Up CodingCreate Your Own Automatically Differentiable Simulation (With Python/JAX)In today’s recreational coding exercise, we create an automatically differentiable simulation using JAX. Automatic differentiation…Jun 7, 2024A response icon3Jun 7, 2024A response icon3
Published inLevel Up CodingCreate 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…Aug 28, 2023Aug 28, 2023
Published inLevel Up CodingCreate 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…Aug 13, 2023A response icon1Aug 13, 2023A response icon1
Published inLevel Up CodingCreate 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…Aug 6, 2023A response icon1Aug 6, 2023A response icon1
Published inLevel Up CodingCreate 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…Aug 4, 2023A response icon8Aug 4, 2023A response icon8
Published inLevel Up CodingCreate 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…Jul 23, 2023A response icon1Jul 23, 2023A response icon1
Published inLevel Up CodingCreate 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…Jun 8, 2023Jun 8, 2023
Published inLevel Up CodingCreate 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…May 15, 2023A response icon4May 15, 2023A response icon4
Published inLevel Up CodingCreate Your Own Constrained Transport Magnetohydrodynamics Simulation (With Python)In today’s recreational coding exercise, we will simulate the Orszag-Tang vortex — a demonstration of supersonic 2D magnetohydrodynamics…Apr 19, 2023Apr 19, 2023