source: MML/trunk/machine/SOLEIL/StorageRing/Lattices/lowalpha/plot_fs4.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 295 bytes
Line 
1%%
2df= [-10 -5 0 5 10]/getrf('Physics');
3dfs = [860 840 780 750 670];
4
5%getrf/416*1e6*sqrt(416*2e6*0.8856/2/pi/getenergy/1e9)
6
7y = power(dfs,4)/power(1.7518e5,4);
8
9
10figure(5)
11plot(df,y);
12
13an = polyfit(df,y,1);
14grid on
15%%
16fprintf('alpha1 = %3.2e alpha2 = %3.2e \n', sqrt(an(end)), -an(end-1)/4)
17
Note: See TracBrowser for help on using the repository browser.