 *** Welcome to SAD Ver.1.4.4.2k64 built at 2026-10-19 14:46:59 +0900 ***
 *** Today: 22:24:20 Monday 11/16/2026 ***
 OFF LOG;ON ECHO;READ 77 ;           1
MOMENTUM = 3GEV;
! FODO ring: 24 cells, 15 deg bend per cell (2*pi total), 3 GeV
DRIFT D1 = (L=1.0) D2 = (L=0.5) DS = (L=0.1);
QUAD  QF = (L=0.3 K1=0.7) QD = (L=0.3 K1=-0.6);
SEXT  SF = (L=0.2 K2=0) SD = (L=0.2 K2=0);
BEND  B  = (L=1.2 ANGLE=0.2617993877991494 E1=0.1308996938995747 E2=0.1308996938995747);
MARK  ORIGIN = ();
CAVI RF = (L=0 VOLT=1.5E6 FREQ=5.0E8 PHI=0);
LINE CELL = (SF DS QF D2 B D2 QD DS SD D1);
LINE RING = (ORIGIN RF 24*CELL);
FFS;
 *** SADScript Initialization: /mnt/d/work/SAD-master/SAD-master/Packages/init.n ***
 *** Run time Environment:     /mnt/d/work/SAD-master/SAD-master/Packages/init.local.n ***
 RFSW RADCOD RAD  FLUC  INTRA POL   COD  DAPER EMIOU K64   FOURI SMEAR
   F     F     F     T     F     F     T     F     F     T     F     T
 $FORM="S17.10";
 USE RING; CELL; CALC;
Out[1]:= USE
 Matched. (  0.000    ) DP = 0.01000  DP0 = 0.00000  ExponentOfResidual = 2.0  OffMomentumWeight =   1.000  CALEXP  
$$$       f AX    #######  #  -2.166305 $$$       f BX    #######  #   5.025185 $$$       f NX    #######  #   6.696329
$$$       f AY    #######  #   1.207630 $$$       f BY    #######  #   2.557661 $$$       f NY    #######  #   4.906056
$$$       f LENG  #######  #  105.60000
 ! Optics.n: TransferMatrix[i,j] = 要素 i から j への 6x6 行列、BeamMatrix[i] = ビーム行列、NormalCoordinates[i]、OrbitGeo[i]
 t=TransferMatrix[1,$$$];
 Print["dims=",Dimensions[t]];
dims={4,4}
 Print["R:m11=",t[[1,1]]];
R:m11=1.7134209045
 Print["R:m12=",t[[1,2]]];
R:m12=-4.7421483609
 Print["R:m21=",t[[2,1]]];
R:m21=1.0690618467
 Print["R:m22=",t[[2,2]]];
R:m22=-2.3751606352
 Print["R:trace_x=",t[[1,1]]+t[[2,2]]];
R:trace_x=-.6617397308
 Print["R:cosmu=",Cos[Twiss["NX","$$$"]]];
R:cosmu=-.3308698654
 Print["R:det_x=",t[[1,1]]*t[[2,2]]-t[[1,2]]*t[[2,1]]];
R:det_x=1
 Print["BeamMatrix[1] diag=",Table[BeamMatrix[1][[i,i]],{i,6}]];
BeamMatrix[1] diag={1.064941289655E-5,1.057781451489E-6,2.21057810487E-37,2.61071203487E-38,0,3.333333333333E-5}
 Print["OrbitGeo[5]=",OrbitGeo[5]];
OrbitGeo[5]={.3,0,0}
 Exit;
 FFS                  end:  CPU time =     0.004 sec
 Design orbit length =   1.0000000000000000     
 RFSW RADCOD RAD  FLUC  INTRA POL   COD  DAPER EMIOU K64   FOURI SMEAR
   T     F     F     T     F     F     T     F     F     T     F     T
 In[2]:=  ???-getbuf-end of input stream
