Simplify fractions with negative numbers