'Returns the condition number of a matrix.
This is the maximum singular value divided by the minimum singular value
Examples
>>> from sympy import Matrix, S
>>> A = Matrix([[1, 0, 0], [0, 10, 0], [0, 0, S.One/10]])
>>> A.condition_number()
100
See Also
singular_values'

def condition_number(self):

    if (not self):
        return S.Zero
    singularvalues = self.singular_values()
    return (Max(*singularvalues) / Min(*singularvalues))
