ReplaceAll Command

From GeoGebra Manual
Revision as of 11:12, 15 April 2022 by Mathmum (talk | contribs) (added note and example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ReplaceAll( <Text>, <Text to Match>, <Text to Replace> )
Creates a new text containing the given text whose text to match has been replaced with the given text to replace.
Example: ReplaceAll("3cos(t)+cos(2y)", "cos", "sin") creates the new text "3sin(t)+sin(2y)".

Note: Use the FormulaText command to create a LaTeX text.
Example: FormulaText(ReplaceAll("3cos(t)+cos(2y)", "cos", "sin")) creates the new LaTeX text "3sin(t)+sin(2y)".
© 2022 International GeoGebra Institute