The shift_phase command takes as argument a trigonometric
expression.
shift_phase returns the expression with phase increased by
π/2 (after the automatic simplification).
Input:
Output:
Input:
Output:
Input:
Output:
Quoting the argument will prevent the automatic simplification.
Input:
Output:
With an unquoted sine, we get:
Input
Output:
since sin(x+pi/2) is evaluated (in this case simplified) before shift_phase is called, and shift_phase(cos(x)) returns sin((pi+2*x)/2)