Made function multiply a little smarter in dealing with complex calculations and reducing complex results to a number when possible
Complex computations will return a (real) Number instead of Complex(x,0) when possible.
Fixed formatting a NaN value