ReplaceAll Command
- 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.
ReplaceAll("3cos(t)+cos(2y)", "cos", "sin") creates the new text "3sin(t)+sin(2y)".
|
Use the FormulaText command to create a LaTeX text. |
FormulaText(ReplaceAll("3cos(t)+cos(2y)", "cos", "sin")) creates the new LaTeX text "3sin(t)+sin(2y)".