RecurrenceOperator(R, F)¶
rec.spad line 24 [edit on github]
R: Join(Comparable, IntegralDomain, ConvertibleTo InputForm)
F: Join(FunctionSpace R, AbelianMonoid, RetractableTo Integer, RetractableTo Symbol, PartialDifferentialRing Symbol, CombinatorialOpsCategory)
This package provides an operator for the n-th term of a recurrence and an operator for the coefficient of x^n in a function specified by a functional equation.
- eltable?: F -> Boolean
eltable? rreturns whether the operator determines (most likely) the sequence completely.
- getEq: F -> F
getEq freturns the defining equation, iffrepresents the coefficient of an ADE or a recurrence.
- makeFEq: (BasicOperator, Symbol, Symbol, F, List F, Stream F) -> F
evalADE(f, x, n, eq, parameters, values)creates an expression that stands for the coefficient ofx^nin the Taylor expansion off(x), wheref(x) is given by the functional equationeq. The argument values specifies the first few Taylor coefficients.
- makeRec: (BasicOperator, Symbol, F, List F, Stream F) -> F
makeRec(u, n, eq, parameters, values)creates an expression that stands foru(n), whereu(n) is given by the equationeq. The argumentparametershas to contain all variables (or kernels) that appear eventually in the stream of values. The argument values specifies the initial values of the recurrenceu(0),u(1), … For the moment we don'tallow recursions that containuinside of another operator.
- values: () -> NonNegativeInteger
values()returns the number of initial values to display at most.
- values: NonNegativeInteger -> NonNegativeInteger
values Nsets the number of initial values to display at most.