Difference between revisions of "Substitute Command"

From GeoGebra Manual
Jump to: navigation, search
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.0}}</noinclude>
+
<noinclude>{{Manual Page|version=4.2}}</noinclude>{{betamanual|version=4.2}}
 
{{command|CAS}}
 
{{command|CAS}}
 
;Substitute[ <expression>, <from>, <to> ]
 
;Substitute[ <expression>, <from>, <to> ]

Revision as of 09:29, 21 July 2012

This command works in CAS View only.

Substitute[ <expression>, <from>, <to> ]
Substitutes from in expression with to.
Example:
Substitute[(3 m - 3)^2 - (m + 3)^2, m, a] yields 8 a2 - 24 a.
Substitute[ <Expression>, <Substitution List> ]
Substitutes in expression every variable of the list with the variable or number you choose for it.
Example:
Substitute[2x + 3y - z, {x=a, y=2, z=b}] yields 2a - b + 6.
© 2024 International GeoGebra Institute