1Math::NumSeq::PalindromUesse(r3)Contributed Perl DocumenMtaatthi:o:nNumSeq::Palindromes(3)
2
3
4

NAME

6       Math::NumSeq::Palindromes -- palindrome numbers like 15351
7

SYNOPSIS

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

DESCRIPTION

14       The palindrome numbers which read the same backwards and forwards.
15
16           0 .. 9, 11, 22, ..., 99, 101, 111, 121, ... 191, 202, ...
17           # starting i=1 value=0
18
19       The default is decimal or the "radix" parameter can select another
20       base.
21

FUNCTIONS

23       See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
24       classes.
25
26       "$seq = Math::NumSeq::Palindromes->new ()"
27       "$seq = Math::NumSeq::Palindromes->new (radix => $r)"
28           Create and return a new sequence object.
29
30   Iterating
31       "$seq->seek_to_i($i)"
32           Move the current sequence position to $i.  The next call to
33           "next()" will return $i and corresponding value.
34
35   Random Access
36       "$value = $seq->ith($i)"
37           Return the $i'th palindrome number.
38
39       "$bool = $seq->pred($value)"
40           Return true if $value is a palindrome, ie. its digits read the same
41           forwards and backwards (in the given "radix").
42

SEE ALSO

44       Math::NumSeq, Math::NumSeq::Repdigits
45

HOME PAGE

47       <http://user42.tuxfamily.org/math-numseq/index.html>
48

LICENSE

50       Copyright 2010, 2011, 2012, 2013, 2014 Kevin Ryde
51
52       Math-NumSeq is free software; you can redistribute it and/or modify it
53       under the terms of the GNU General Public License as published by the
54       Free Software Foundation; either version 3, or (at your option) any
55       later version.
56
57       Math-NumSeq is distributed in the hope that it will be useful, but
58       WITHOUT ANY WARRANTY; without even the implied warranty of
59       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
60       General Public License for more details.
61
62       You should have received a copy of the GNU General Public License along
63       with Math-NumSeq.  If not, see <http://www.gnu.org/licenses/>.
64
65
66
67perl v5.28.1                      2014-06-29      Math::NumSeq::Palindromes(3)
Impressum