Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Magma
Calling Sequence
Magma[command](arguments)
command(arguments)
Description
The Magma package is a collection of routines for working with small, finite magmas. A magma (sometimes also called a groupoid or a general binary system) is simply a set, together with a binary operation defined on that set.
List of Magma Package Commands
The following is a list of the commands in the main Magma package.
AreIsomorphic
CayleyColourTable
Center
Commutant
CountIdempotents
CountSquares
Enumerate
Format
GetIsomorphism
HasIdentity
HasLeftIdentity
HasLeftZero
HasRightIdentity
HasRightZero
HasZero
IdempotentElements
Identity
IsAlternative
IsAntiCommutative
IsAssociative
IsBand
IsCommutative
IsCrossedSet
IsDiassociative
IsDistributive
IsExtra
IsFlexible
IsGroup
IsIdempotent
IsIdentity
IsJordan
IsKei
IsLeftAlternative
IsLeftBol
IsLeftDistributive
IsLeftIdentity
IsLeftInvertible
IsLeftInvolutary
IsLeftSemimedial
IsLeftZero
IsLoop
IsMedial
IsMonoid
IsomorphicCopy
IsomorphismClasses
IsParamedial
IsPower3Associative
IsPowerAssociative
IsQuandle
IsQuasigroup
IsQuasitrivial
IsRack
IsRightAlternative
IsRightBol
IsRightDistributive
IsRightIdentity
IsRightInvertible
IsRightInvolutary
IsRightSemimedial
IsRightZero
IsSemigroup
IsSimple
IsSquag
IsSteiner
IsSubMagma
IsSzasz
IsZero
IsZeropotent
LeftIdentity
Nucleus
RandomMagma
Rank
RightIdentity
Squares
SubMagmaClosure
TransportStructure
Unrank
Zero
Magma representation
A magma is a set together with a binary operation. Since, by transport of structure, every finite magma of order n is isomorphic to a magma on the set of integers from 1 to n, magmas are represented uniformly throughout the package by their Cayley tables as Arrays with entries from 1 to n. Thus, the (i,j) entry of the Cayley table is the result of multiplying the elements i and j.
Arrays representing Cayley tables of magmas are stored in row-major order (C_order) and have datatype integer[4].
Accessing the Magma Package Commands
Each command in the Magma package can be accessed by using either the long form or the short form of the command name in the command calling sequence. For example, if M is a magma you may use either Magma[IsAssociative](M) or with(Magma); then IsAssociative(M).
Because the underlying implementation of the Magma package is a module, it is possible to use the form Magma:-command to access a command from the package. For more information, see Module Members.
Compatibility
The Magma package was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Examples
Download Help Document