Posts
Cancel

# T>T: Writing and Running Python Programs Locally

Purpose This post is designed as a supplement to my Python programming course. For new programmers it is not obvious how to go from writing a program to running it, and in this post we discuss a s...

# T>T: Brownian Motion

Try the code yourself! Click the following button to launch an ipython notebook on Google Colab which implements the code developed in this post: What is Brownian Motion? Brownian motion named...

# T>T: Langton's Ant 2: Electric Boogaloo

Update 26-Oct-2020: This post uses Matplotlib v3.1.0. Using v3.3.0 produces errors with the discrete color map as they have changed the functionality. Try the code yourself! Click the following b...

# T>T: Order from Chaos: Langton's Ant

Try the code yourself! Click the following button to launch an ipython notebook on Google Colab which implements the code developed in this post: Langton’s Ant The inspiration for this post ca...

# T>T: Simple GUI Graph Plotter in Python

Plotting data is a key part of any science and there are a lot of software solutions designed for this purpose, e.g. Excel, Veusz, gnuplot etc… These are all fine but something which I often need i...

# T>T: Hartree Fock Theory in 100 Lines

Try the code yourself! Click the following button to launch an ipython notebook on Google Colab which implements the code developed in this post: In a previous post we looked at the hydrogen at...

# T>T: Solving the Hydrogen Atom Variationally

Try the code yourself! Click the following button to launch an ipython notebook on Google Colab which implements the code developed in this post: The Problem: We want to solve the Schrödinger ...

# T>T: When Double Precision is Not Enough

Try the code yourself! Click the following button to launch an ipython notebook on Google Colab which implements the code developed in this post: The Problem: We want to solve the following st...

# T>T: Call C++ From Python Without Wrapping

The Problem: We want to programmatically find the minimum value of the following simple function $f(x,y) = x^2 + y^2 + 3 \tag{1}$ We already know the answer to this, \(\text{min}(f(x,y)) = ...

# T>T: Optimising Cumulative Sums in Python

The Problem: We have a simple nested sum problem (aka cumulative sum): \[ \sum\limits_{a_i=0}^{a}\sum\limits_{b_i=0}^{b}\sum\limits_{c_i=0}^{c}\sum\limits_{d_i=0}^{d}\sum\limits_{e_i=0}^{e}\sum\lim...