Difference between revisions of "CAS View"
From GeoGebra Manual
Line 4: | Line 4: | ||
* {{KeyCode|Enter}}: evaluate input | * {{KeyCode|Enter}}: evaluate input | ||
− | * {{KeyCode|Ctrl+Enter}}: check input but do no evaluate input, e.g. ''b + b'' stays ''b + b''. Note that assignments are always evaluated, e.g. a := 5 | + | * {{KeyCode|Ctrl+Enter}}: evaluate numerically the input, e.g. ''sqrt(2)'' yields ''1.41''. |
+ | * {{KeyCode|Alt+Enter}}: check input but do no evaluate input, e.g. ''b + b'' stays ''b + b''. Note that assignments are always evaluated, e.g. a := 5 | ||
* In an empty row type | * In an empty row type | ||
** {{KeyCode|Space}} bar for previous output | ** {{KeyCode|Space}} bar for previous output |
Revision as of 01:16, 3 November 2012
This page is about a feature that is supported only in GeoGebra 4.2. |
Basic input
- Enter: evaluate input
- Ctrl + Enter: evaluate numerically the input, e.g. sqrt(2) yields 1.41.
- Alt + Enter: check input but do no evaluate input, e.g. b + b stays b + b. Note that assignments are always evaluated, e.g. a := 5
- In an empty row type
- Space bar for previous output
)
for previous output in parentheses=
for previous input
- Suppress output with a semicolon at the end of your input, e.g.
a := 5;
Toolbar
- Clicking a button in the toolbar applies a command to the currently edited row
- You can select part of the input text to only apply the operation to this selected part
Variables
Assignments & Connection with GeoGebra
- Assignments use the := notation, e.g.
b := 5
,a(n) := 2n + 3
- To free up a variable name again, use
Delete[b]
orb :=
- Variables and functions are always shared between the CAS view and GeoGebra if possible. If you define
b:=5
in the CAS view, then you can use b in all of GeoGebra. If you have a functionf(x)=x^2
in GeoGebra, you can also use this function in the CAS view.
Note:
The output will always be just the expression after the
:=
, e.g. if you type b:=5
the output will be 5
.Row References
You can refer to other rows in the CAS view in two ways
- Static row references insert text from another row, so your input is changed.
#
inserts the previous output#5
inserts the output of row 5
- Dynamic row references use text from another row, but don't change your input.
$
inserts the previous output$5
inserts the output of row 5
Equations
- Equations are written using the simple Equals sign, e.g.
3x + 5 = 7
- You can perform arithmetic operations on equations, e.g.
(3x + 5 = 7) - 5
subtracts 5 from both sides of the equation. This is useful for manual equation solving. LeftSide[3x + 5 = 7]
returns 3 x + 5 andRightSide[3x + 5 = 7]
returns 7
Commands and Tools
For a complete list of commands and tools see CAS Commands and CAS tools.