def tanm(A):
 A = _asarray_square(A)
 return _maybe_real(A, solve(cosm(A), sinm(A)))

def tanm ( A ) : A = _asarray_square ( A ) return _maybe_real ( A , solve ( cosm ( A ) , sinm ( A ) ) )
compute the matrix tangent .