1 Math::Sequence defines a class for simple mathematic sequences with a
2 recursive definition such as x_(n+1) = 1 / (x_n + 1). Creation of a
3 Math::Sequence object is described below in the paragraph about the
6 Math::Sequence uses Math::Symbolic to parse and modify the recursive
7 sequence definitions. That means you specify the sequence as a string
8 which is parsed by Math::Symbolic. Alternatively, you can pass the
9 constructor a Math::Symbolic tree directly.
11 Because Math::Sequence uses Math::Symbolic for its implementation, all
12 results will be Math::Symbolic objects which may contain other variables
13 than the sequence variable itself.
15 Each Math::Sequence object is an iterator to iterate over the elements of
16 the sequence starting at the first element (which was specified by the
17 starting element, the second argument to the new() constructor). It offers
18 facilities to cache all calculated elements and access any element
19 directly, though unless the element has been cached in a previous
20 calculation, this is just a shortcut for repeated use of the iterator.
22 WWW: http://search.cpan.org/dist/Math-Sequence/