When the substitutions are specified by an equation, or a list or set of equations, every occurrence of the left-hand side of an equation that appears in expr is replaced by the right-hand side of the equation. The substitutions within one set, list, or table are performed simultaneously. The substitutions are performed sequentially starting with s1. , sn must be an equation, a list or set of equations, or a table. The second general form of the subs command makes the substitutions specified by first arguments in the last argument expr. Differences between the two commands are highlighted in the examples later. Simple applications of replacing a symbol by a value in a formula should normally be done with the eval command. Note that this command is similar to the eval command. The first form of the subs command substitutes a for x in the expression expr. Substitute subexpressions into an expressionĮquations, sets or lists of equations, or tables
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |