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
MapleSelectIndexed - select from a table, list, or rtable in external code
MapleSelectImaginaryPart - select the imaginary part of a complex-valued expression in external code
MapleSelectRealPart - select the real part of a complex-valued expression in external code
Calling Sequence
MapleSelectIndexed(kv, s, n, ind)
MapleSelectImaginaryPart(kv, s)
MapleSelectRealPart(kv, s)
Parameters
kv
-
kernel handle returned by StartMaple
s
an indexable Maple object
n
length of ind
ind
32-bit integer index array
Description
These functions are part of the OpenMaple interface to Microsoft Visual Basic.
The MapleSelectIndexed function retrieves the element s[ind], where s is a list, set, table, or rtable object. The index is an integer array. To reference s[1,2], set ind(0) = 1, and ind(1) = 2;.
The MapleSelectImaginaryPart function returns the imaginary part of s. The MapleSelectRealPart function returns the real part of s. These commands are equivalent to the Maple Im and Re commands.
Examples
Sub TestSelect(ByVal kv As Long)
Dim s, r As Long
Dim ind(2) As Long
s = EvalMapleStatement(kv, "Matrix([[red,yellow],[green,blue]]);")
ind(0) = 1
ind(1) = 2
r = MapleSelectIndexed(kv, s, 2, ind(0))
MapleALGEB_Printf1 kv, "r = %a", r
s = EvalMapleStatement(kv, "1.1+2.2*I;")
r = MapleSelectRealPart(kv, s)
MapleALGEB_Printf1 kv, "re = %a", r
End Sub
See Also
OpenMaple, OpenMaple/VB/API, OpenMaple/VB/Examples
Download Help Document