Pass by reference semantics - possible to imitate.47 The role of side effects.46Ī digression: standard and non-standard evaluation.46 Set and SetDelayed : when which one is used.44Įquality checks.44Įqual.44īeware: Equal may return "unevaluated".44Įqual is used by built-in solvers to build equations.45Īssigning the result of Equal to a variable, and more on evaluation.45 The difference between Set and SetDelayed : an example.41Ĭhain assignments.42ĭon’ t use SetDelayed with more than two arguments.43 Immediate and delayed assignments: Set and SetDelayed.41 ValueQ.39ĭynamic data typing.40Īssignments.41 Indexed variables and DownValues.36Ĭomposite variables and SubValues.37Ĭlearing variables.37Īssignments attach rules to Symbol-s.39 Third principle: expression evaluation.33 Non - commutativity of rules substitution.32Īutomatic rule reordering.32 Patterns allow for multiple definitions of the same function.31 Rewrite Rules.30Īn example of a simple pattern-defined function.30įunctions are really rules : DownValues command.31Įxample of a function based on a restricted pattern.31Ī bit about evaluation.31 Second principle: pattern-matching and rule substitution.30 Levels of expressions and the Level command.28 Heads of expressions and the Head command.27Īccessing individual parts of expressions through indexing. Literal equivalents of built-in functions, and FullForm command.26Īll normal expressions are trees - TreeForm command.27 Mathematica normal (composite) expressions.26 Introduction.26 1.1įirst principle: everything is an expression.26Ītoms and the built-in AtomQ predicate.26 Other symbols, where used, respective owners.ĭigitally signed by Leonid Shifrin DN: cn=Leonid Shifrin, o=Brunel University, ou,, c=GB Date: 2009.02.04 11:30:22 -08'00'Ĭontents Preface.18 I. MathematicaTM is a registered trademark of Wolfram Research Inc. To view a copy of this license, visit or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License. Mathematica programming: an advanced introduction Leonid Shifrin Copyright © Leonid Shifrin, 2008 MathematicaÒ programming: an advanced introduction Leonid
0 Comments
Leave a Reply. |