1Math::NumSeq::SelfLengtUhsCeurmuCloanttirvieb(u3t)ed PerMlatDho:c:uNmuemnSteaqt:i:oSnelfLengthCumulative(3)
2
3
4

NAME

6       Math::NumSeq::SelfLengthCumulative -- cumulative digit length of own
7       values
8

SYNOPSIS

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

DESCRIPTION

15       Cumulative digit length of values from the sequence itself,
16
17           1, 2, 3, 4, ... 9, 10, 12, 14, 16, ... 98, 100, 103, 106, ...
18
19       Value 9 is 1 digit, so add 1 to give 10.  Then 10 is 2 digits so add 2
20       to give 12, etc.
21
22       The default is decimal digits, or optional "radix" parameter can give
23       another base.  For example "radix => 2" binary
24
25           1, 2, 4, 7, 10, 14, 18, 23, 28, 33, 39, 45, ...
26
27       The effect in all cases is to step by 1s up to 10, then by 2s up to
28       100, then 3s up to 1000, etc, in whatever "radix".  This is similar to
29       DigitLengthCumulative, but its lengths are from i whereas here they're
30       from the values.
31

FUNCTIONS

33       See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
34       classes.
35
36       "$seq = Math::NumSeq::SelfLengthCumulative->new ()"
37       "$seq = Math::NumSeq::SelfLengthCumulative->new (radix => $r, to_radix
38       => $t)"
39           Create and return a new sequence object.
40
41       "$bool = $seq->pred($value)"
42           Return true if $value occurs in the sequence.
43

SEE ALSO

45       Math::NumSeq, Math::NumSeq::DigitLength,
46       Math::NumSeq::DigitLengthCumulative
47

HOME PAGE

49       <http://user42.tuxfamily.org/math-numseq/index.html>
50

LICENSE

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