Hi all, would be grateful to help with the following. Consider the code:
p = x /. Solve[(a - x)/y^2 == 1, x];
q = ((3 a - 2 p)/(4 y^2));
f[x_] = x Sign[x] ;
Assuming[q > 0, Simplify[f[q]]]
The output is:
((a + 2 y^2) Sign[a + 2 y^2])/(4 y^2 Sign[y]^2)
I am trying to tell function f[] that it's argument is positive, and hence Sign[] operator is +1. However, Sign operator is still in the Out cell.
By the way, if I remove the first line in which p
is defined via Solve, everything works fine. It's something about the fact that q depends on an output from a function that makes "Assuming q>0" work incorrectly
What's wrong?