NAME

Math::PlanePath::MathImageRationalsTree -- reduced rationals by tree

SYNOPSIS

use Math::PlanePath::MathImageRationalsTree;
my $path = Math::PlanePath::MathImageRationalsTree->new;
my ($x, $y) = $path->n_to_xy (123);

DESCRIPTION

This path enumerates rationals Y/X in reduced form, ie. with no common factor, by the Stern-Brocot or Calkin-Wilf binary trees.

FUNCTIONS

See "FUNCTIONS" in Math::PlanePath for the behaviour common to all path classes.

$path = Math::PlanePath::MathImageRationalsTree->new ()

Create and return a new path object.

SEE ALSO

Math::PlanePath, Math::PlanePath::PythagoreanTree