I was trying to extract the parameter of the phase term of the sine function, and I found the problem that Mathamtica automatically try to change the sign of the sine function.
I got negative number or positive amplitude from the sine function. I don't really care what sine I am getting, but I want to get is consistent sign. Do I have a way to fix the sign of the amplitude or frequency part of the sine function?
example
2 Sin[2 x - 1]
2 Sin[-2 x - 1]
-2 Sin[-2 x - 1]
-2 Sin[2 x - 1]
Current output
-2 Sin[1 - 2 x]
-2 Sin[1 + 2 x]
2 Sin[1 + 2 x]
2 Sin[1 - 2 x]
Desired output
2 Sin[2 x - 1]
2 Sin[-2 x - 1]
2 Sin[1 + 2 x]
2 Sin[1 - 2 x]
Sin
are difficult to change. Could you provide some details about a more general problem you want to solve? It is probably possible to solve it in a more simple way. $\endgroup$