Modifiable Options within the gfun Package
Calling Sequence
Parameters(arg1, arg2, ... )
Parameters
arg1, arg2, ... - argument(s) of the form name=val or name
Description
- The
Parameterscommand is used to set and query variables that affect the computation insidegfun. The variables that can be set and queried are described below. - If an argument is of the form
name=valthen this specifies the setting for the named variable.
For each argument of this type, Parameters returns the old value of the argument. This is convenient when you want to change and later restore a value, for example,
oldorder := Parameters(maxordereqn=7); # set new value and save old
...
Parameters(maxordereqn=oldorder); # restore previous value
- If an argument is a name then the current value of the named variable is retrieved and returned as the function value.
- When
Parametersis called with many arguments, it returns an expression sequence containing the values. - The standard
Parametersvariables and their default values are as follows: maxordereqn: the maximal order (or degree) for equations returned bylisttodiffeq,seriestodiffeq,listtorec,seriestorec,listtoalgeq, andseriestoalgeq. The default value isinfinity.minordereqn: the minimal order (or degree) for equations returned bylisttodiffeq,seriestodiffeq,listtorec,seriestorec,listtoalgeq, andseriestoalgeq. The default value is1.maxdegcoeffs: the maximal degree of polynomial coefficients allowed in guessed equations or recurrences. The default value isinfinity.maxtotaldegree: an optional keyword bound on total degree, applicable only to algebraic and linear differential-equation guessing (listtoalgeq,seriestoalgeq,listtodiffeq, andseriestodiffeq). For algebraic equations it bounds the total degree in the independent variable and the unknown; for differential equations it bounds the total degree of the linear differential operator, countingx^j Dx^iwith degreei+j. Its default value isinfinity.checkterms: the number of nonzero input terms held out for validating a guessed relation. Zero coefficients between or after them are also held out as needed. The default value is1.mode: eitherguessingorapproximant. The default value isguessing.modulo: either0, for rational arithmetic, or a prime. The default value is0.optionsgf: specifies the list of types of generating functions considered bylisttoalgeq,listtodiffeq,listtohypergeom,listtolist,listtoratpoly,listtorec,listtoseries,seriestoalgeq,seriestodiffeq,seriestohypergeom,seriestolist,seriestoratpoly,seriestorec, andseriestoseries. The default value is['ogf'](ordinary generating functions).
For more information on the generating function types, see gfun/gftypes.
Examples
> gfun:-Parameters(maxordereqn=5,minordereqn);
\[\infty ,\quad 1\]