Substitute 命令
CAS 语法
- Substitute( <Expression>, <from>, <to> )
-
替换 表达式 中所有出现的 被替换项 为 替换项 ,并在变量被替换为值时对结果求值。
-
Substitute((3 m - 3)^2 - (m + 3)^2, m, a)得出 8 a 2 - 24 a . -
Substitute((3 m - 3)^2 - (m + 3)^2, m, 2)得出 -16 .
- Substitute( <Expression>, <Substitution List> )
-
替换 表达式 中变量的每次出现,使用 替换列表 中的相应项或值进行替换,并对数值替换求值。
-
Substitute(2x + 3y - z, {x = a, y = 2, z = b})得出 2a - b + 6 . -
Substitute(2x + 3y - z, x = a, y = 2, z = b)得出 2a - b + 6 .