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
evaln - evaluate to a name
Calling Sequence
evaln(expr)
Parameters
expr
-
expression
Description
The evaln function is used to "evaluate to a name" or, more generally, to form an assignable object. The name (assignable object) will not itself be evaluated.
A typical example of its use would be divide(a,b,evaln(t[i])) where i is the index of a for loop.
If the expression is a simple name (i.e. a symbol) then the same effect can be achieved by using single quotes on the name.
evaln can be used on names, subscripts, function calls, and concatenations.
There is also a procedure parameter modifier, evaln, which declares that an argument to a procedure invocation must evaluate to a name.
Thread Safety
The evaln command is thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
Examples
If something which does not evaluate to a name is passed to evaln an error is returned
Error, illegal use of an object as a name
See Also
:=, assigned, The evaln Modifier, uneval
Download Help Document