MultiSeries
AddFunction
add new function definition to MultiSeries
RemoveFunction
remove function definition from MultiSeries
GetFunction
get function definition from MultiSeries
FunctionSupported
check if a function definition is supported in MultiSeries
Calling Sequence
Parameters
Description
Examples
AddFunction(g, f)
RemoveFunction(g)
GetFunction(g)
FunctionSupported(g)
g
-
function name
f
procedure
The AddFunction(g, f) command, a library extension mechanism, adds a definition related to the function g to MultiSeries, where f is a user-defined procedure which handles multiseries containing the function g.
For example, let f be a user-defined function for g. To add this information to the multiseries function, use AddFunction(g, eval(f,1)).
For example, after issuing AddFunction(g, f), the function call multiseries⁡f⁡x,x,3 will invoke g⁡s,scale,varlist,3 to compute the multiseries. The arguments are the multiseries expansion of the argument of f, the scale in which the expansion is performed, the variable with respect to which the expansion is computed, and the order (see multiseries). Note that the function g must return a SERIES data structure or 0, not just a polynomial (see type[SERIES]).
The RemoveFunction(g) command removes a definition related to the function g from the multiseries function.
For example, to remove the information from the multiseries function, use RemoveFunction(g).
The GetFunction(g) command returns a procedure related to the function g, provided that such a procedure exists. Otherwise, it returns NULL.
The FunctionSupported(g) command returns true if a definition of the function g is known to the multiseries function. It returns false otherwise.
with⁡MultiSeries:
MultiSeries does not know about function mysin:
series⁡mysin⁡x,x
mysin⁡0+D⁡mysin⁡0⁢x+12⁢D2⁡mysin⁡0⁢x2+16⁢D3⁡mysin⁡0⁢x3+124⁢D4⁡mysin⁡0⁢x4+1120⁢D5⁡mysin⁡0⁢x5+O⁡x6
Let the function mysin act as sin (using AddFunction and GetFunction):
AddFunction⁡mysin,eval⁡GetFunction⁡sin
Try MultiSeries[series] on mysin
Now remove the knowledge of sin from MultiSeries (using function RemoveFunction)
FunctionSupported⁡sin
true
RemoveFunction⁡sin
false
Get back to original state:
AddFunction⁡sin,eval⁡GetFunction⁡mysin
RemoveFunction⁡mysin
FunctionSupported⁡mysin
series⁡sin⁡x,x
x−16⁢x3+1120⁢x5+O⁡x7
See Also
extension
Download Help Document