Skip to content

Instantly share code, notes, and snippets.

View PetrKryslUCSD's full-sized avatar

Petr Krysl PetrKryslUCSD

View GitHub Profile
module mwe
using LinearAlgebra: dot, norm
using Statistics: mean
using Cthulhu
using InteractiveUtils
cmplx(r, c) = r + im * c
size3(v) = norm(v)
ssize3(v) = v[1]^2 + v[2]^2 + v[3]^2
# This file is machine-generated - editing it directly is not advised
julia_version = "1.8.5"
manifest_format = "2.0"
project_hash = "5fb174050415bfb2078581bbe0e257b3dbe52a7c"
[[deps.Adapt]]
deps = ["LinearAlgebra", "Requires"]
git-tree-sha1 = "cc37d689f599e8df4f464b2fa3870ff7db7492ef"
uuid = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
┌──────────────────────────────────────────────────────────────────────┐
│ • MobaXterm Personal Edition v24.0 • │
│ (SSH client, X server and network tools) │
│ │
│ ⮞ SSH session to pkrysl@firenze.ucsd.edu │
│ • Direct SSH : ✓ │
│ • SSH compression : ✓ │
│ • SSH-browser : ✓ │
│ • X11-forwarding : ✓ (remote display is forwarded through SSH) │
│ │
from math import pi
import numpy
from scipy.optimize import minimize
import context
from pystran import model
from pystran import section
from pystran import freedoms
from pystran import geometry
from pystran import plots