Routine Name: l2ConditionNumber
Author: David Merkley
Language: Python
Description/Purpose: Gives the l2ConditionNumber norm
Input: a matrix
Output: the norm
Implementation/Code:
def l2ConditionNumber(A):
b0 = rv(len(A))
lmax = powerIteration(A, b0)[0]
lmin = inversePowerIteration(A, b0)[0]
return abs(lmax / lmin)