ReplaceAll Command

From GeoGebra Manual
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