Execute Command

From GeoGebra Manual
Revision as of 21:23, 19 November 2012 by Spanish1 (talk | contribs) (<!-- and ---> hide the last note as we have checked that commands in Spanish with "Ejecuta" are running all right in every try.)
Jump to: navigation, search



Execute[ <List of Texts> ]
Executes list of commands entered as texts.
Examples:
Execute[{"A=(1,1)","B=(3,3)","C = Midpoint[A, B]"}] creates points A, B and their midpoint C.

Execute[Join[{"f_{1} = 1", "f_{2} = 1"}, Sequence["f_{"+(i + 2) + "} = f_{" + (i+1) + "} + f_{"+ i +"}", i, 1, 10]]] creates first 10 elements of Fibonacci sequence.


Execute[ <List of Texts>, <Parameter 1>, ... , <Parameter 9> ]
Replaces %1 for parameter 1, %2 for parameter 2 and so on in each text in list. Up to 9 parameters can be specified. After the replacement, resulting scripts are executed.
Example:
Execute[{"Midpoint[%1,%2]"},A,B] creates midpoint of segment AB.


© 2024 International GeoGebra Institute