Printer - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Code Generation Package : Language Definition : Printer : CodeGeneration/LanguageDefinition/Printer/GetFunctionSignature

Printer

  

GetFunctionSignature

  

get list of type signatures for function

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Printer:-GetFunctionSignature(fname)

Parameters

Printer

-

Printer module

fname

-

string; function name

Description

• 

The GetFunctionSignature command returns a list of acceptable type signatures and precisions for a function fname.

• 

An element of the list returned is itself a list, whose first operand is an accepted type signature for fname, and whose second is a set specifying the precision of this signature.

• 

If fname has not been defined with the AddFunction command, then GetFunctionSignature returns the empty list.

Examples

withCodeGeneration:

PrinterLanguageDefinition[DefaultPrinter]:

Printer:-AddFunctionsin,numeric::numeric,sin

sin,

(1)

Printer:-AddFunctioncos,numeric::numeric,cos

cos,

(2)

Printer:-AddFunctiontan,numeric::numeric,tan

tan,

(3)

Printer:-AddFunctiontan,numeric,numeric::numeric,tan

tan,

(4)

Printer:-GetFunctionSignaturecos

numeric::numeric,numeric=double,generic,single,

(5)

Printer:-GetFunctionSignaturetan

numeric::numeric,numeric=double,generic,single,,numeric,numeric::numeric,numeric=double,generic,single,

(6)

See Also

AddFunction

GetFunction

Printer

 


Download Help Document

Copyright © MathResources Inc. All Rights Reserved.

www.mathresources.com

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam