$ansis a MathObject (i.e., something created by
Compute()or one of the specific constructors like
Formula()). You use
num_cmp()when you are using a perl native real value rather than a MathObject.
num_cmp($p)is essentially equivalent to
num_cmpuses MathObjects behind the scenes).
Hope that clears it up.