AddFunction - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

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

Calling Sequence

AddFunction(g, f)

RemoveFunction(g)

GetFunction(g)

FunctionSupported(g)

Parameters

g

-

function name

f

-

procedure

Description

• 

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  will invoke  to compute the multiseries. The arguments are the multiseries expansion of the argument of , 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.

Examples

MultiSeries does not know about function mysin:

(1)

Let the function mysin act as sin (using AddFunction and GetFunction):

Try MultiSeries[series] on mysin

(2)

Now remove the knowledge of sin from MultiSeries (using function RemoveFunction)

(3)

(4)

Get back to original state:

(5)

(6)

(7)

(8)

See Also

extension

MultiSeries

 


Download Help Document