Skip to content

Instantly share code, notes, and snippets.

@tkphd
tkphd / Moire-sine.ipynb
Created September 13, 2021 15:38
Moiré Patterns with the Sine Function
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ionizing
Ionizing / hatom.jl
Last active February 14, 2024 15:36
Numeric solution to 3D hydrogen atom Schrodinger Equation. Reimplemented against https://github.com/quantum-visualizations/qmsolve , but with more efficiency.
#!/usr/bin/env julia
# Constants
const k = 3.8099821161548593 # hbar^2 / (2*m_e) /(Å^2) / eV
const k_c = 14.39964547842567 # (e*e / (4 * np.pi * epsilon_0)) # measured in eV / Å
const m = 1.0 # mass of electron
using LinearAlgebra;