simplify:

c-d/d-c

if you mean

(x-d)/(d-c)
then you would get -1

(just like 5/-5 = -1)