def __mul__(self, scalar):
<EOL>if type(scalar) is float or type(scalar) is numpy.float64 ortype(scalar) is numpy.float32:<EOL><INDENT>if scalar < <NUM_LIT:0.0>:<EOL><INDENT>raise Exception("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>result = MaterialPackage(self.material, self._compound_masses *<EOL>scalar, self._P, self._T)<EOL>return result<EOL><DEDENT>else:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>
The multiplication operator (*).

Create a new package by multiplying self with scalar.

:param scalar: The result is a new package with its content equal to
  self multiplied by a scalar, leaving self unchanged.

:returns: New MaterialPackage object.