I have the following list
set1={-(1/x), -(1/x) + x/2 - 2 Log[x] - Log[x]/x, 1}
How when I am doing
Complement[set1, {-1/x}]
Then it gives
{1, -(1/x) + x/2 - 2 Log[x] - Log[x]/x}
then it rearranges the third element to the second element and vice versa. This is dangerous for my case. How to stop this?
Complement
,Union
,Intersection
treat the list as a set. Hence duplicates are deleted and a sort is performed. $\endgroup$