NAME

Math::GrahamFunction::SqFacts - a squaring factors vector.

VERSION

version 0.02004

WARNING!

This is a module for Math::GrahamFunction's internal use only.

CONSTRUCTION

Math::GrahamFunction::SqFacts->new({n => $n})

Initializes a squaring factors object from a number.

Math::GrahamFunction::SqFacts->new({factors => \@factors})

Initializes a squaring factors object from a list of factors.

METHODS

$facts->clone()

Creates a clone of the object and returns it.

$n_facts->mult_by($m_facts)

Calculates the results of the multiplication of the number represented by $n_facts and $m_facts and stores it in $n_facts (destructively).

This is actually addition in vector space.

my $result = $n->mult($m);

Non destructively calculates the multiplication and returns it.

$facts->is_square()

A predicate that returns whether the factors represent a square number.

$facts->exists($myfactor)

Checks whether $myfactor exists in $facts.

my $last_factor = $factors->last()

Returns the last (and greatest factor).

$facts->product()

Returns the product of the factors.

$facts->first()

Returns the first (and smallest) factor.

AUTHOR

Shlomi Fish, <shlomif at cpan.org>

SUPPORT

Websites

The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.

Bugs / Feature Requests

Please report any bugs or feature requests by email to bug-math-grahamfunction at rt.cpan.org, or through the web interface at https://rt.cpan.org/Public/Bug/Report.html?Queue=Math-GrahamFunction. You will be automatically notified of any progress on the request by the system.

Source Code

The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)

https://github.com/shlomif/perl-math-grahamfunction

git clone git://github.com/shlomif/perl-math-grahamfunction.git

AUTHOR

Shlomi Fish <shlomif@cpan.org>

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/shlomif/perl-math-grahamfunction/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

COPYRIGHT AND LICENSE

This software is Copyright (c) 2020 by Shlomi Fish.

This is free software, licensed under:

The MIT (X11) License