def cross(vec1, vec2):
 if (not isinstance(vec1, (Vector, Dyadic))):
  raise TypeError('Cross product is between two vectors')
 return (vec1 ^ vec2)

def cross ( vec1 , vec2 ) : if ( not isinstance ( vec1 , ( Vector , Dyadic ) ) ) : raise TypeError ( 'Cross product is between two vectors' ) return ( vec1 ^ vec2 )
from: URL .