Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ohno
ohno / readable.svg
Last active December 7, 2023 04:43
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ohno
ohno / Rayleigh-Ritz.jl
Last active September 1, 2025 04:56
Rayleigh-Ritz method in J. Thijssen, Computational Physics 2nd edition, (Cambridge University Press, 2007)
using LinearAlgebra
α = [13.00773, 1.962079, 0.444529, 0.1219492]
S = [(π/(α[i]+α[j]))^(3/2) for i in keys(α), j in keys(α)]
H = [3*π^(3/2)*α[i]*α[j]/(α[i]+α[j])^(5/2) - 2*π/(α[i]+α[j]) for i in keys(α), j in keys(α)]
E, C = eigen(H, S)
@ohno
ohno / template.jl
Last active September 9, 2025 15:32
# Options
user = "JuliaFewBody"
authors = ["Shuhei Ohno", "Martin Mikkelsen"]
repo = "FewBodyHamiltonians.jl"
# Package Template
using PkgTemplates
template = Template(;
dir = @__DIR__,
user = user,