Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
codegen[makeparam] - change a variable to be a parameter
codegen[makeglobal] - make a variable to be a global variable
codegen[declare] - declare the type of a parameter
Calling Sequence
makeparam(x, f)
makeparam(x::t, f)
makeglobal(x, f)
makeglobal(x::t, f)
declare(x::t, f)
Parameters
x
-
symbol (variable) or list of symbols
t
type - declaration of the variable
f
Maple procedure
Description
The makeparam and makeglobal functions are used to make a variable to be a parameter, respectively global variable in the Maple procedure. If a list of variables is given, then all the variables in the list are made into parameters, respectively globals.
If a type t is specified the variable is given the specified type. This can be used to declare the type of a variable.
The declare function is used to specify the type t for a variable x which is a parameter in the Maple procedure f.
Examples
f := proc() local A; A := array(1..2); A[1] := x^2; A[2] := x^2; A end proc:
See Also
codegen[makeproc]
Download Help Document