using multiple functions with correlated arrays Numpy Python
问题 The function below is supposed compute either the Uval and Lval functions in accordance to Set and Numbers . For the first two numbers U and 52599 are in relation and L and 52550 are in relation, since the second number has the label L the Lval equation is used. The previous number is function is previous = numbers[1:] and the current function is current = numbers[:-1] . So (52550 - 52599)/52550 * -100 will be the computation for the first two numbers. The equations are supposed to be