No. | : 950 |
Title | : V1.1.6.6.1k64 FindClosedOrbit, etc. |
Date | : 2019/03/27(Wed) 19:19:39 |
Name | : K. Oide |
URL | : |
Fixed:
1. Confusion of INF and NaN for output.
2. A glitch when set-element-value-command is applied to multiple types.
Added:
1. A new function Put (similar to Mathematica):
Put[x__,file_String]:=With[{f=OpenWrite[file]},
Scan[Write[f,#]&,{x}];
Close[f]];
2. New tags Polarization2, Polarization4, Polarization6 in the results of Emittance[], corresponding to 2nd, 4th, 6th order calculation, respectively.
Polarization returs the same value as Polarization.
3. A new function FindClosedOrbit[z0_:{0,0,0,0}]: try to find out the closed orbit with CALC4D. z0 is the initial orbit at the entrance. CALC4D only.
Changes:
1. Eleminate a list as the arg of FFS USE .
2. The internal indices of idval, idtype, pname, lpname now start from 0.
3. Added cross terms into 4th and 6th order terms in the depolarization matrix.
4. Now element-value-command such as "Q* K1 0" allows a wildcard for the keyword. It is especially useful to reset all keywords before GetMAIN, etc.
5. Many math functions are moved to a new module mathfun, internally.
7. MAIN now accpets INF and NaN as the value of input parameters.
- WebForum -