Aetheria/docs/research/rosette-relative-equilibria/run6.py
Meta Vens c981537904 Research: rosettes as relative equilibria under the 2D log law, for follow-up rosette-generation-r3
Eyes facts for aetheria-gravity: regular and twisted alternating polygon
equilibria (log closed form, Newtonian sources), linear stability
(Muscas-Pasca-Stoica log thresholds reproduced, Klemperer, Thomson),
the soft core's reach, PeriodAround's ring rule against the twisted
equilibrium spin, and rotating-frame stationary points against the drawn
potential. Solver scripts beside the note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 21:01:13 +02:00

9 lines
405 B
Python

import numpy as np
def f(n,mu,r): return r*r*((n-1)/2+n*mu/(1+r**n))-((n-1)*mu/2+n*r**n/(1+r**n))
def nroots(n,mu):
g=np.geomspace(1e-3,1e3,20001); v=f(n,mu,g); return g[:-1][np.sign(v[:-1])!=np.sign(v[1:])]
for n in (2,3,4,5,6):
prev=None
for mu in np.geomspace(1,1e-4,400):
k=len(nroots(n,mu))
if k!=prev: print(n, f"mu={mu:.5f} roots={k}", np.round(nroots(n,mu),4)); prev=k