def Ftrminmax(lK, Rg, alpha, betas, beta, delta, omegat, pos): a = np.amin(Ftrxsum(lK, Rg, alpha, betas, beta, delta, omegat, pos)) b = np.amax(Ftrxsum(lK, Rg, alpha, betas, beta, delta, omegat, pos)) c = np.amin(Ftrysum(lK, Rg, alpha, betas, beta, delta, omegat, pos)) d = np.amax(Ftrysum(lK, Rg, alpha, betas, beta, delta, omegat, pos)) # print np.abs(a+b)+np.abs(c+d) return (np.abs(a + b) + np.abs(c + d))
def ltmax(lK, Rg, beta, delta): omegat = np.arange(0, 360, 1) return np.amax(lt(lK, Rg, beta, delta, omegat))
def Ftryminmax(lK, Rg, alpha, betas, beta, delta): pos = np.array([0, 0.5 * np.pi, np.pi, 1.5 * np.pi]) omegat = np.arange(0, 360, 1) c = np.amin(Ftrysum(lK, Rg, alpha, betas, beta, delta, omegat, pos)) d = np.amax(Ftrysum(lK, Rg, alpha, betas, beta, delta, omegat, pos)) return (np.abs(d - c))
def ltfreemax(lK, Rg, alpha, beta, delta): omegat = np.arange(0, 360, 1) return np.amax(ltfree(lK, Rg, alpha, beta, delta, omegat))
def Ftrxminmax(lK, Rg, alpha, betas, beta, delta): pos = np.array([0, 0.5 * np.pi, np.pi, 1.5 * np.pi]) omegat = np.arange(0, 360, 1) a = np.amin(Ftrxsum(lK, Rg, alpha, betas, beta, delta, omegat, pos)) b = np.amax(Ftrxsum(lK, Rg, alpha, betas, beta, delta, omegat, pos)) return (np.abs(b - a))