Using Packages - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Libraries and Packages : UsingPackages

Using Packages

  

The UsingPackages help page contains the following sections.

  

Long Form Calling Sequence

  

Short Form Calling Sequence

  

Module Members

  

Getting Help with a Command in a Package

Long and Short Form Calling Sequences

  

Each command in a package and subpackage can be accessed by using either the long form or the short form of the command name in the command calling sequence.

Long Form

• 

The commands in a package can always be accessed by using the long form of the command name in the command calling sequence.

  

For example, in the CurveFitting package, use the following long-form calling sequence to compute an interpolating polynomial.

  

CurveFitting[PolynomialInterpolation](arguments)

  

In the Student[LinearAlgebra] subpackage, use the following long-form calling sequence to compute the rank of a Matrix A.

  

Student[LinearAlgebra][Rank](A)

• 

The long form of the command name is necessary if:

  

- The short form of the command has not been previously defined by using the with command, with(PackageName, command)

  

- All of the package command short forms have not been previously defined by using with(PackageName)

  

Additionally, if another object in the current Maple session has the same name as a command in the PackageName package, the PackageName command can be accessed by using unevaluation quotes as PackageName['command'](arguments).

Short Form

• 

The short form of a particular PackageName command can be used during the current Maple session after with(PackageName, command) has been entered. To use the short form of all the PackageName command names during the current Maple session, enter the with(PackageName) command first.

  

For example, use the following short-form calling sequence to compute an interpolating polynomial (assuming with(CurveFitting) has already been entered).

  

PolynomialInterpolation(arguments)

  

Use the following short-form calling sequence to compute the rank of a Matrix A (assuming with(Student[LinearAlgebra]) has already been entered).

  

Rank(A)

• 

To see a list of the packages, for which the short form command names are available, use the packages() command. For more information, see with.

Module Members

  

When the underlying implementation of a package is a module, it is also possible to use the form PackageName:-command to access a command from the package.  Since the : notation never evaluates its right-hand side, it is never necessary to use unevaluation quotes in this form. This notation is recommended for accessing PackageName commands from within any program you might write so that it executes as you expect in all contexts. For more information, see module.

Getting Help with a Command in a Package

  

Display the help page for a particular PackageName command by entering any one of the following commands (where command is a name chosen from the PackageName command list ).

  

?PackageName[command]

  

?PackageName, command

  

?command (in the case where command is a unique name in Maple)

See Also

help, module, rebound, with


Download Help Document

Was this information helpful?



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