Home > atdemos > atmatchExamples > ExampleATMATCH > getDispersion.m

getDispersion

PURPOSE ^

function [dx,dy]=getDispersion(THERING,bpmindx)

SYNOPSIS ^

function [dx,dy]=getDispersion(THERING,bpmindx)

DESCRIPTION ^

 function [dx,dy]=getDispersion(THERING,bpmindx)
 
 determines dispersion taking two orbits at plus and minus DE=0.0001

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [dx,dy]=getDispersion(THERING,bpmindx)
0002 % function [dx,dy]=getDispersion(THERING,bpmindx)
0003 %
0004 % determines dispersion taking two orbits at plus and minus DE=0.0001
0005 %
0006 
0007 
0008 DE=0.001;
0009 
0010 Op=findorbit4(THERING,DE,bpmindx);
0011 Opx=Op(1,:);
0012 Opy=Op(3,:);
0013 
0014 Om=findorbit4(THERING,-DE,bpmindx);
0015 Omx=Om(1,:);
0016 Omy=Om(3,:);
0017 
0018 dx=(Opx-Omx)./(2*DE);
0019 dy=(Opy-Omy)./(2*DE);
0020 
0021 return

Generated on Thu 24-Aug-2017 18:47:33 by m2html © 2005