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
CompSeq - A representation for computation sequences
Calling Sequence
CompSeq(assignments)
CompSeq(locals=list1, globals=list2, params=list3, assignments)
Parameters
list1, list2, list3
-
lists of names
assignments
list of the form name=expression
Description
The function CompSeq is a placeholder for representing a computation sequence.
Specification of local and global variables as well as parameters is optional.
The actual computation sequence is specified as a list of the form name=expression and represents an assignment of the value of the expression to the name. The last assignment in the list is also the result of the computation sequence.
Computation sequences can be converted to and from procedures, simplified and optimized. For more information, see codegen[optimize].
Examples
f:= proc(a,b) local i,j; global x,y; x:=a+b; i := a*b; j := x+i; y := a+sin(x) end proc;
See Also
codegen[optimize]
Download Help Document