<repo>\pysad\tests\_u2_indep.py:67: RuntimeWarning: The iteration is not making good progress, as measured by the 
 improvement from the last ten iterations.
  v = fsolve(g, [0.0, 0.0], xtol=1e-14)
## 1. n = 0.4 の扇形磁石 16 台 (3 GeV 相当、K1 = -0.061685 /m^2、ρ0 = 2.5465 m、h = 0.3927 /m)
解析式 (B' 一様): dνx/dδ = -0.60246、dνy/dδ = 0.73786   [ν = (0.774597, 0.632456)]
elegant CSBEND (T1 の保存値 T1_bend_k1_elegant.out.txt): K2 = 0 → (-0.60246, +0.73786)、K2 = -hK1 → (-0.17213, +0.21082)

K1 定義  CALC (解析行列)              独立な積分                    比 (CALC/積分)             
log    ( -0.17213,   0.21082)   ( -0.17213,   0.21082)   (0.99999, 1.00000)
lin    ( -0.60246,   0.73786)   ( -0.60251,   0.73789)   (0.99992, 0.99996)

追跡 (閉軌道の周りの 1 周の写像の線形化、DISFRIN=1) と CALC のチューン − 独立な積分のチューン (端数):
K1 定義         δ      track x      track y       CALC x       CALC y
log      -0.004     1.21e-08    -3.19e-12     1.27e-08     5.49e-12
log      -0.002    -1.72e-09    -1.37e-12    -1.60e-09    -7.03e-13
log       0.000     3.90e-10    -1.07e-12     3.90e-10    -6.85e-13
log       0.002     8.70e-09    -8.62e-13     8.50e-09    -7.32e-13
log       0.004     3.88e-09     6.78e-13     3.70e-09    -1.07e-12
lin      -0.004     2.24e-09    -8.09e-12     1.96e-09    -5.21e-12
lin      -0.002    -1.16e-08    -1.82e-12    -1.16e-08    -1.16e-12
lin       0.000     5.59e-09    -1.07e-12     5.59e-09    -1.43e-12
lin       0.002     7.23e-09     2.75e-13     7.15e-09    -1.18e-12
lin       0.004     1.03e-08     8.73e-12     1.00e-08    -5.02e-13

追跡の 1 周 (16 台) の写像 − 独立な積分の最大差 (DISFRIN=1、x と y の振幅):
log    δ=+0.000 x 1 mm, y 0.15 mm  4.33e-14
log    δ=+0.000 x 5 mm, y 7.5 mm   2.33e-11
log    δ=+0.004 x 1 mm, y 0.15 mm  1.10e-10
log    δ=+0.004 x 5 mm, y 7.5 mm   5.46e-11
log    δ=-0.004 x 1 mm, y 0.15 mm  8.10e-11
log    δ=-0.004 x 5 mm, y 7.5 mm   5.33e-11
lin    δ=+0.000 x 1 mm, y 0.15 mm  4.10e-11
lin    δ=+0.000 x 5 mm, y 7.5 mm   2.87e-08
lin    δ=+0.004 x 1 mm, y 0.15 mm  2.27e-10
lin    δ=+0.004 x 5 mm, y 7.5 mm   2.85e-08
lin    δ=-0.004 x 1 mm, y 0.15 mm  1.59e-10
lin    δ=-0.004 x 5 mm, y 7.5 mm   2.91e-08

## 2. ASTRID2 の自然な色収差 (6 極なし。DISFRIN=1 で四極・偏向磁石の端のフリンジなし) を独立な積分と比べる
K1 定義  pysad CALC: ξ (x, y) | ∂²ν/∂δ² (x, y)        独立な積分 (端の縦集束あり)                             
log    ( -6.2181, -11.8060) | (  44.25,  101.74)   ( -6.2181, -11.8060) | (  44.22,  106.44)
lin    ( -6.2486, -11.0336) | (  43.14,  102.94)   ( -6.2486, -11.0336) | (  43.09,  107.65)

## 3. B161: CALC の dk の修正 (compat.set_bend_dk_fix) の影響
n = 0.4 のリング: CALC の ν(δ) − 独立な積分 (K1 の定義 log)
       δ     K64 の dk x     K64 の dk y           修正 x           修正 y
   0.000      -3.90e-10       1.07e-12      -3.90e-10       1.07e-12
   0.010       3.45e-05       1.67e-11      -1.24e-08       1.67e-11
   0.020       1.32e-04       4.60e-10      -7.45e-08       4.60e-10
   0.040       4.79e-04       1.52e-08      -1.36e-06       1.52e-08
   0.060       9.48e-04       1.18e-07      -7.19e-06       1.18e-07

ASTRID2:
  dk 修正 False ξ = (-0.000173, -0.000213)  ∂²ν/∂δ² = (76.2564, 88.2172)  ν(δ=2%) = (5.1968109, 2.1588446)  EMITX = 1.26804338e-08  SIGE = 4.32608827e-04
  dk 修正 True  ξ = (-0.000174, -0.000214)  ∂²ν/∂δ² = (76.2544, 88.2186)  ν(δ=2%) = (5.1968104, 2.1588446)  EMITX = 1.26804338e-08  SIGE = 4.32608831e-04

大きなリング A (kek-ls_v03_12.lat):
  dk 修正 False ξ = (-0.047717, 0.067331)  ∂²ν/∂δ² = (368.9327, 194.3668)  ν(δ=2%) = (47.6391042, 17.6561152)  EMITX = 1.55017892e-10  SIGE = 6.94552027e-04
  dk 修正 True  ξ = (-0.047714, 0.067335)  ∂²ν/∂δ² = (368.9287, 194.3597)  ν(δ=2%) = (47.6391042, 17.6561152)  EMITX = 1.55017892e-10  SIGE = 6.94552027e-04
