@mesa,
The input is a positive rational number m1/m2.
For an input of a negative rational number the relation between x! and (-x)! according to my definition (which i didn't show here) of the factorial (!) is: