Computer Mathematics and the Graphing Calculator

The simplest and most efficient method would be to take the opposite of the numerator and denominator in any fraction where the denominator is negative. That would change 3/-5 to –3/5 and would change –3/-5 to 3/5. Write a program to simplify the fraction by dividing the numerator and denominator by the greatest common factor. ................
................