# _n : numeraotr (value = _n/_d)
# _a : accuracy
# _p : precision
-# _f : flags, used by MBR to flag parts of a rationale as untouchable
+# _f : flags, used by MBR to flag parts of a rational as untouchable
package Math::BigRat;
sub _new_from_float
{
- # turn a single float input into a rationale (like '0.1')
+ # turn a single float input into a rational (like '0.1')
my ($self,$f) = @_;
return $self->bnan() if $f->is_nan();
sub badd
{
- # add two rationales
+ # add two rationals
# set up parameters
my ($self,$x,$y,@r) = (ref($_[0]),@_);
sub bsub
{
- # subtract two rationales
+ # subtract two rationals
# set up parameters
my ($self,$x,$y,@r) = (ref($_[0]),@_);
sub bmul
{
- # multiply two rationales
+ # multiply two rationals
# set up parameters
my ($self,$x,$y,@r) = (ref($_[0]),@_);
=head1 NAME
-Math::BigRat - arbitrarily big rationales
+Math::BigRat - arbitrarily big rationals
=head1 SYNOPSIS
=head1 DESCRIPTION
Math::BigRat complements Math::BigInt and Math::BigFloat by providing support
-for arbitrarily big rationales.
+for arbitrarily big rationals.
=head2 MATH LIBRARY