INPUT:
- - ``A`` - The matrix in question
+ - ``A`` - The matrix in question
OUTPUT:
INPUT:
- - ``A`` - The matrix whose eigenvectors we want to compute.
+ - ``A`` - The matrix whose eigenvectors we want to compute.
OUTPUT:
"""
if not A.base_ring().is_exact() and not A.base_ring() is SR:
- raise ValueError('The base ring of ``A`` must be either exact or symbolic.')
+ msg = 'The base ring of ``A`` must be either exact or symbolic.'
+ raise ValueError(msg)
if not A.base_ring().is_field():
raise ValueError('The base ring of ``A`` must be a field.')
if not A.base_ring() is SR:
# Change the base field of ``A`` so that we are sure we can take
- # roots. The symbolic ring has no algebraic closure.
+ # roots. The symbolic ring has no algebraic_closure method.
A = A.change_ring(A.base_ring().algebraic_closure())