Exemple #1
0
 def rotate(self, angles):
    """
    dftvector.rotate(angles):
         Rotate dftvector.components by the angles in the array 
         'angles' (radians) and return the newly rotated vector.
    """
    return self.components * umath.exp(complex(0.0, 1.0) * angles)
Exemple #2
0
 def rotate(self, angles):
     """
   dftvector.rotate(angles):
        Rotate dftvector.components by the angles in the array 
        'angles' (radians) and return the newly rotated vector.
   """
     return self.components * umath.exp(complex(0.0, 1.0) * angles)
Exemple #3
0
def rotate_components(components, angles):
   return components * umath.exp(complex(0.0, 1.0) * angles)   
Exemple #4
0
def rotate_components(components, angles):
    return components * umath.exp(complex(0.0, 1.0) * angles)