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

Online Help

All Products    Maple    MapleSim


FunctionAdvisor/calling_sequence

return the calling sequence of a given mathematical function

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

FunctionAdvisor(calling_sequence, math_function, all)

Parameters

calling_sequence

-

name where calling_sequence is one of the following literal names 'calling_sequence', 'form', or 'syntax'

math_function

-

Maple name of mathematical function

all

-

(optional) literal name; 'all'; request all calling sequences of math_function when it accepts more than one

Description

• 

The FunctionAdvisor(calling_sequence, math_function) returns the calling sequence of the function.

  

Note that syntax and form are synonyms of calling_sequence. For more information, see FunctionAdvisor/synonyms.

• 

If the math_function accepts more than one calling sequence, for example, Ei, by default, the FunctionAdvisor(calling_sequence, math_function) command returns the calling sequence with the most arguments. To obtain all the calling sequences for the math_function, specify the optional argument 'all'.

Examples

FunctionAdvisorcalling_sequence,sin

sinz

(1)

FunctionAdvisorsyntax,pochhammer

pochhammerz,n

(2)

FunctionAdvisorform,WeierstrassP

WeierstrassPz,g__2,g__3

(3)

The variables used by the FunctionAdvisor command to create the calling sequence are local variables. To make the FunctionAdvisor command return results using global variables, pass them as an extra argument in the form of a list.

FunctionAdvisorcalling_sequence,LegendreP

LegendrePa,b,z

(4)

has,a,b,z

false

(5)

FunctionAdvisorcalling_sequence,LegendreP,A,z

LegendrePA,b,z

(6)

has,A,has,b,has,z

true,false,true

(7)

The following illustrate the case where the mathematical function accepts more than one calling sequence.

FunctionAdvisorcalling_sequence,arctan

arctany,x

(8)

FunctionAdvisorcalling_sequence,arctan,all

arctanz,arctany,x

(9)

FunctionAdvisorcalling_sequence,LegendreP,all

LegendrePa,z,LegendrePa,b,z

(10)

FunctionAdvisorcalling_sequence,Ζ,all

ζs,ζns,ζns,a

(11)

See Also

Ei

FunctionAdvisor

FunctionAdvisor/definition

FunctionAdvisor/describe

FunctionAdvisor/synonyms

FunctionAdvisor/topics