Question: Sign and eval functions in combination gives wrong result

Why do the statements eval(sign(x),x=-2) and subs(x=-2,sign(x)) both give plus one while sign(-2) gives -1 as expected?

eval(sign(x), x = -2)

                              eval(sign(x), x = -2)

subs(x = -2, sign(x))

                              subs(x = -2, sign(x))

Please Wait...