arte/utils/quadratic_sum.py
def quadraticSum(arrayOfErrorsWithSign):
    ''' quadraticSum(arrayOfErrorsWithSign)
    Sum in quadrature of errors, considering sign

    5 = quadraticSum([3, 4])
    8 = quadraticSum(10, -6])

    '''
    total = 0.
    for err in arrayOfErrorsWithSign:
        if err < 0:
            total -= err ** 2
        else:
            total += err ** 2
    return np.sqrt(total)
 quadraticSum(arrayOfErrorsWithSign)
    Sum in quadrature of errors, considering sign

    5 = quadraticSum([3, 4])
    8 = quadraticSum(10, -6])

    
quadraticSum(arrayOfErrorsWithSign)
Sum in quadrature of errors, considering sign


quadraticSum ( arrayOfErrorsWithSign ) Sum in quadrature of errors considering sign
def quadraticSum(arrayOfErrorsWithSign):
    total = 0.
    for err in arrayOfErrorsWithSign:
        if err < 0:
            total -= err ** 2
        else:
            total += err ** 2
    return np.sqrt(total)
def quadraticSum ( arrayOfErrorsWithSign ) : total = 0. for err in arrayOfErrorsWithSign : if err < 0 : total -= err ** 2 else : total += err ** 2 return np . sqrt ( total )
quadraticSum(arrayOfErrorsWithSign)
Sum in quadrature of errors, considering sign
quadraticSum ( arrayOfErrorsWithSign ) Sum in quadrature of errors considering sign
''' quadraticSum(arrayOfErrorsWithSign)
    Sum in quadrature of errors, considering sign

    5 = quadraticSum([3, 4])
    8 = quadraticSum(10, -6])

    '''
arrayOfErrorsWithSign