Documentation Home Page HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Mathematical | PHASESHIFT

PHASE SHIFT – [PHASESHIFT]
Outputs the phase difference between two vectors in degrees.


CATEGORY
Mathematical

DESCRIPTION
Outputs the phase difference between two vectors in degrees. Output is always between -180 and 180 degrees. When modules(magnitudes) are negatives, it has the same effect as rotating the vector by 180 degrees.


RESULT VARIABLES AND PARAMETERS

Phase_ShiftPhase difference [degrees]
Module 1Module of the first vector
Phase 1Phase of the first vector [degrees]
Module 2Module of the second vector
Phase 2Phase of the second vector [degrees]


SYNTAX

pshift=phaseshift(mag1,ang1,mag2,ang2)


CHARACTERISTICS
Data type support
Double Floating point

EXAMPLE

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323