Difference between revisions of "ParseToFunction Command"
From GeoGebra Manual
Noel Lambert (talk | contribs) |
m |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <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
andtext1 = "f(x) = 3x + 1"
.ParseToFunction[f, text1]
returns f(x) = 3x + 1.
Note: See also ParseToNumber command.