Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
evalindets - transform all subexpressions of a given type
Calling Sequence
evalindets( expr, atype, transformer, rest )
evalindets[flat]( expr, atype, transformer, rest )
Parameters
expr
-
anything; any Maple expression
atype
type; any Maple type expression
transformer
anything; an expression (typically, a procedure) to be called on each subexpression processed
rest
anything; (optional) expression sequence of extra arguments to be passed to transformer
Description
The command evalindets is a particular combination of calls to eval and indets that allows you to efficiently transform all subexpressions of a given type by some algorithm. It encapsulates a common "pattern" used in expression manipulation and transformation.
Each subexpression of type atype is transformed by the supplied transformer procedure to produce a "replacement" for it. Then, each subexpression is replaced in the original expression using eval with the corresponding transformed expression.
The flat option indicates that the subexpressions of expr of type atype are not nested. This provides a hint to Maple that it can use a somewhat faster algorithm in this special case. If the flat option is passed and nesting occurs, unexpected results may be be produced.
Examples
This example changes every call to to a call to .
Shift all symbols by a constant of .
Expand all products in an expression.
Using evalindets, you can avoid expanding things you might not want expanded.
Optional arguments may be passed to the transformer.
See Also
eval, frontend, indets, subs, subsindets, type
Download Help Document