Close
Close window
package - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

convert/package

convert an expression to a package

Calling Sequence

convert( e, 'package' )

Parameters

e

-

expression

Description

An expression e (typically a module) can be converted to a package by using the call convert( e, 'package' ). The resulting package is returned.

If the input expression e is already a package, then it is returned unchanged.

If the input expression e is a module that is not a package, it is converted, in place, to a package and returned. No other expression may be converted to a package.

The main purpose of this conversion is to repair modules that are intended to be packages, but have not been correctly formed because of the omission of the package option.

Examples

>

m := module()
export addSquares;
addSquares:= proc(a,b)
description "finds the sum of the squares of a and b";
a^2+b^2
end proc
end module:

>

addSquares2,3

addSquares2,3

(1)
>

m:-addSquares2,3

13

(2)
>

addSquares

(3)
>

false

(4)
>

>

true

(5)
>

addSquares

13

(6)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /