Skip to content

Instantly share code, notes, and snippets.

View ohno's full-sized avatar

Shuhei Ohno ohno

View GitHub Profile
# Options
user = "JuliaFewBody"
authors = ["Shuhei Ohno", "Martin Mikkelsen"]
repo = "FewBodyHamiltonians.jl"
# Package Template
using PkgTemplates
template = Template(;
dir = @__DIR__,
user = user,
@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)
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.
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 / GeneralizedEigenvalueProblems.ipynb
Last active June 6, 2024 11:02
Generalized Eigenvalue Problems
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ohno
ohno / Optim.ipynb
Last active June 13, 2023 09:12
Optim.jl Tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ohno
ohno / Dates.ipynb
Last active September 5, 2021 14:16
Dates.jl Tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.