1Math::NumSeq::Modulo(3)User Contributed Perl DocumentatioMnath::NumSeq::Modulo(3)
2
3
4

NAME

6       Math::NumSeq::Modulo -- remainders modulo of a given number
7

SYNOPSIS

9        use Math::NumSeq::Modulo;
10        my $seq = Math::NumSeq::Modulo->new (modulus => 123);
11        my ($i, $value) = $seq->next;
12

DESCRIPTION

14       A simple sequence of remainders to a given modulus of a given number,
15       for example modulus 5 gives 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, etc.
16

FUNCTIONS

18       See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
19       classes.
20
21       "$seq = Math::NumSeq::Modulo->new (modulus => $number)"
22           Create and return a new sequence object.
23
24   Random Access
25       "$value = $seq->ith($i)"
26           Return "$i % $modulus".
27
28       "$bool = $seq->pred($value)"
29           Return true if $value occurs as a remainder, so 0 <= $value <=
30           modulus-1.
31

SEE ALSO

33       Math::NumSeq, Math::NumSeq::Multiples
34

HOME PAGE

36       <http://user42.tuxfamily.org/math-numseq/index.html>
37

LICENSE

39       Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2017, 2018 Kevin Ryde
40
41       Math-NumSeq is free software; you can redistribute it and/or modify it
42       under the terms of the GNU General Public License as published by the
43       Free Software Foundation; either version 3, or (at your option) any
44       later version.
45
46       Math-NumSeq is distributed in the hope that it will be useful, but
47       WITHOUT ANY WARRANTY; without even the implied warranty of
48       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
49       General Public License for more details.
50
51       You should have received a copy of the GNU General Public License along
52       with Math-NumSeq.  If not, see <http://www.gnu.org/licenses/>.
53
54
55
56perl v5.30.1                      2020-01-30           Math::NumSeq::Modulo(3)
Impressum