--- from: http://rosettacode.org/wiki/Display_a_linear_combination