phase = phis(U0MeV,VrfMV) this function returns the synchronous phase in radians input: U0MeV is energy loss per turn in MeV VrfMV is the RF voltage in MV
0001 function phase = phis(U0MeV,VrfMV) 0002 % phase = phis(U0MeV,VrfMV) 0003 % 0004 % this function returns the synchronous phase in radians 0005 % input: 0006 % U0MeV is energy loss per turn in MeV 0007 % VrfMV is the RF voltage in MV 0008 0009 phase=pi - asin(U0MeV./VrfMV); 0010 0011 end