Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
convert/package - convert an expression to a package
Calling Sequence
convert( e, 'package' )
Parameters
e
-
expression
Description
An expression (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:
Warning, m is not a correctly formed package - option `package' is missing
[addSquares]
See Also
module/package, type/package, with
Download Help Document