Difference between revisions of "ParseToFunction Command"

From GeoGebra Manual
Jump to: navigation, search
m
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>
 
{{command|scripting}}
 
{{command|scripting}}
 
;ParseToFunction[ <Function>, <String> ]
 
;ParseToFunction[ <Function>, <String> ]

Revision as of 08:00, 3 August 2015



ParseToFunction[ <Function>, <String> ]
Parses the string and stores the result to a function f, which must be defined and free before the command is used.
Example: Define f(x) = 3x² + 2 and text1 = "f(x) = 3x + 1". ParseToFunction[f, text1] returns f(x) = 3x + 1.
Note: See also ParseToNumber command.
© 2024 International GeoGebra Institute