FractionMath reads a file containing fractions, then computes the line into on fraction and outputs a single fraction per line