Difference between revisions of "Commands"
From GeoGebra Manual
Line 4: | Line 4: | ||
{{note|A command's result may be named by entering a label followed by an equal sign <nowiki>(=)</nowiki>. In the example below, the new point is named S.}} | {{note|A command's result may be named by entering a label followed by an equal sign <nowiki>(=)</nowiki>. In the example below, the new point is named S.}} | ||
{{example|To get the intersection point of two lines g and h you can enter <code><nowiki>S = Intersect[g, h]</nowiki></code> (see [[Intersect Command]]).}} | {{example|To get the intersection point of two lines g and h you can enter <code><nowiki>S = Intersect[g, h]</nowiki></code> (see [[Intersect Command]]).}} | ||
− | {{note|You can also use indices within the names of objects: A<sub>1</sub> is entered as <code>A_1</code> while S<sub>AB</sub> is created using <code>s_{AB}</code>. This is part of [[ | + | {{note|You can also use indices within the names of objects: A<sub>1</sub> is entered as <code>A_1</code> while S<sub>AB</sub> is created using <code>s_{AB}</code>. This is part of [[LaTeX|LaTeX syntax]].}} |
Revision as of 15:42, 22 December 2010
Using commands you can produce new and modify existing objects.
Note: A command's result may be named by entering a label followed by an equal sign (=). In the example below, the new point is named S.
Example: To get the intersection point of two lines g and h you can enter
S = Intersect[g, h]
(see Intersect Command). Note: You can also use indices within the names of objects: A1 is entered as
A_1
while SAB is created using s_{AB}
. This is part of LaTeX syntax.