math4610

Routine Name: lperr

Author: David Merkley

Language: Python

Description/Purpose: Gives the lperr norm

Input: a vector

Output: the norm

Implementation/Code:

def lperr(x, y, p):
    return lp(vectorSub(x, y), p)