require "bigrat.pl"; $RAT = &rneg($RAT); # negation $RAT = &rabs($RAT); # absolute value $CODE = &rcmp($RAT, $RAT); # comparison, like <=> $RAT = &radd($RAT, $RAT); # addition $RAT = &rsub($RAT, $RAT); # subtraction $RAT = &rmul($RAT, $RAT); # multiplication $RAT = &rdiv($RAT, $RAT); # division ($RAT,$RAT) = &rmod($RAT); # modulus (int, frac parts) $RAT = &rnorm($RAT); # normalization $RAT = &rsqrt($RAT, $CYCLES); # square root