“運算區”的版本间的差异
第17行: | 第17行: | ||
* 進行乘法運算時,必須明確地標示乘號。您可以在'''[[:en:Input Bar|指令列]]'''輸入 <code>a(b+c)</code> 或 <code>a*(b+c)</code>,但在 [[File:Menu_view_cas.svg|link=|16px]]'''運算區'''只能輸入<code>a*(b+c)</code>。 | * 進行乘法運算時,必須明確地標示乘號。您可以在'''[[:en:Input Bar|指令列]]'''輸入 <code>a(b+c)</code> 或 <code>a*(b+c)</code>,但在 [[File:Menu_view_cas.svg|link=|16px]]'''運算區'''只能輸入<code>a*(b+c)</code>。 | ||
− | == | + | == 直接輸入的快捷鍵== |
− | + | 您可在 [[File:Menu_view_cas.svg|link=|16px]]'''運算區''' 使用下列快捷鍵,來求解或檢查輸入。 | |
− | {{note| | + | {{note| 除了使用這些快捷鍵之外,您也可使用[[#運算區工具列|'''運算區工具列''']] 上的[[:en:CAS Tools|'''工具''']] 。}} |
− | * {{KeyCode|Enter}} | + | * {{KeyCode|Enter}} :執行代數運算 |
− | * {{KeyCode|Ctrl+Enter}} | + | * {{KeyCode|Ctrl+Enter}} :執行數值運算 {{Example|1=<code>sqrt(2)</code> 輸出 ''1.41''}} |
− | * {{KeyCode|Alt+Enter}} | + | * {{KeyCode|Alt+Enter}} :檢查輸入但不執行任何運算 {{Example|1=<code>b + b</code> 仍輸出 ''b + b''.}} |
+ | {{note| 設定變數時,一定會對右式執行運算,例如:輸入 <code>a := 5</code> ,輸出結果為 5。}} | ||
<br> | <br> | ||
− | + | 在 [[File:Menu_view_cas.svg|link=|16px]]'''運算區''' 空白''' 指令欄'''使用下列快捷鍵,可快速擷取上個儲存格的輸入或輸出: | |
− | * {{KeyCode| | + | * {{KeyCode| 空白 }} 鍵:擷取上個儲存格的輸出。 |
− | * <code>)</code> | + | * <code>)</code> :擷取上個儲存格的輸出並加上括號。 |
− | * <code>=</code> | + | * <code>=</code> :擷取上個儲存格的輸入。 |
− | {{note| | + | {{note| 您可在輸入的結尾加上分號,則該儲存格不會顯示輸出,例如:<code>a := 5;</code> 。}} |
− | == | + | == 變數設定以及變數與其它視區之間的關聯== |
− | + | 您可使用符號 <code>:=</code> 來設定變數,例如:<code>b := 5</code> 、<code>a(n) := 2n + 3</code> 。 | |
− | * '' | + | * '''釋放變數名稱''' :如果要刪除某個變數,可使用 <code>Delete[b]</code> 指令。 |
− | * '' | + | * '''重新定義變數或函數''' :您可重新定義變數或函數,但必須在「''' 原來的儲存格''' 」操作,否則將被視為新變數,而且系統會自動賦予這個變數新的名稱。 |
− | + | 通常,你所定義的變數或函數,都可共用於''' 運算區''' 及其他'''視區'''。例如: | |
− | * | + | * 若您在'''運算區'''定義 <code>b:=5</code> ,則您可在其它''' 視區'''使用 ''b'' 這個變數。 |
− | + | *若您在其他''' 視區''' 定義函數 <code>f(x)=x^2</code> ,您也可以在''' 運算區''' 使用這個函數。 | |
− | {{note|1=<div> | + | {{note|1=<div> 設定變數時,系統只會輸出 <code>:=</code> 右式的運算結果,例如:當您鍵入 <code>b:=5</code> 只會輸出 ''5'' 。</div>}} |
− | == | + | == 方程式== |
− | * | + | * 您可使用一般的''' 等號'''來輸入方程式,例如:<code>3x + 5 = 7</code> 。 |
− | * '' | + | * '''四則運算''' 您可對整個方程式做四則運算,這在逐步解方程式時很有用。 {{Example|1= 輸入 <code>(3x + 5 = 7) - 5</code> 會同時對等式的兩邊減去 5 。}} |
− | * '' | + | * '''左式或右式''' :使用 <code>LeftSide[]</code> 和 <code>RightSide[]</code> 指令可傳回方程式的左式或右式。 {{Example|1=<code>LeftSide[3x + 5 = 7]</code> 傳回 ''3 x + 5'' ,<code>RightSide[3x + 5 = 7]</code> 則傳回 ''7'' 。}} |
− | == | + | == 參照其他列== |
− | + | 如果在 [[File:Menu_view_cas.svg|link=|16px]]''' 運算區'''要參照其他列,可使用下列兩種方式: | |
− | * ''' | + | * ''' 靜態參照''' :這種參照方式會複製被參照列的輸出結果,但假如被參照列的內容之後有被更動,參照列並''' 不會自動更新''' 。 |
− | ** <code><nowiki>#</nowiki></code> | + | ** <code><nowiki>#</nowiki></code> :複製前一列的輸出結果。 |
− | ** <code><nowiki>#5</nowiki></code> | + | ** <code><nowiki>#5</nowiki></code> :複製第 5 列的輸出結果。 |
− | * ''' | + | * ''' 動態參照''' :這種參照方式會插入被參照列的連結,若被參照列的內容之後有被更動,參照列''' 會自動更新''' 。 |
− | ** <code><nowiki>$</nowiki></code> | + | ** <code><nowiki>$</nowiki></code> :插入前一列輸出結果的連結。 |
− | ** <code><nowiki>$</nowiki>5</code> | + | ** <code><nowiki>$</nowiki>5</code> :插入第 5 列輸出結果的連結。 |
− | = | + | = 運算區指令= |
− | + | [[File:Menu_view_cas.svg|link=|16px]]'''運算區'''有[[:en:CAS Commands|'''運算區專用的指令''']] ,讓您能在 [[File:Menu_view_cas.svg|link=|16px]]'''運算區'''建立物件。只要在'''指令欄''' 開始輸入''' 指令''' 名稱,GeoGebra 會跳出''' 指令''' 清單供您選擇。 | |
− | {{note| | + | {{note| 詳細清單請參閱'''[[:en:CAS Commands|運算區指令]]'''。}} |
− | {{note| | + | {{note| 從 GeoGebra 4.9.170.0 版開始,[[File:Menu_view_cas.svg|link=|16px]]'''運算區''' 支援[[:en:CAS View Supported Geometry Commands| 某些'''幾何指令''']] 的代數運算。}} |
=CAS View Toolbar= | =CAS View Toolbar= | ||
The [[CAS Tools|''CAS View Toolbar'']] provides a range of ''[[CAS Tools]]'' that can be operated with the mouse and allow you to evaluate input and perform calculations. Just enter your input and use the mouse to click on the corresponding ''CAS Tool'' afterwards in order to apply it to your input. | The [[CAS Tools|''CAS View Toolbar'']] provides a range of ''[[CAS Tools]]'' that can be operated with the mouse and allow you to evaluate input and perform calculations. Just enter your input and use the mouse to click on the corresponding ''CAS Tool'' afterwards in order to apply it to your input. | ||
+ | |||
+ | [[File:Toolbar-CAS.png|left|link=CAS Tools|x32px]] | ||
+ | <br> | ||
+ | <br> | ||
+ | |||
{{hint|You may select part of the input text to only apply the operation to this selected part.}} | {{hint|You may select part of the input text to only apply the operation to this selected part.}} | ||
{{note|For a complete list of ''Tools'' see ''[[CAS Tools]]''.}} | {{note|For a complete list of ''Tools'' see ''[[CAS Tools]]''.}} |
2014年12月12日 (五) 12:34的版本
運算區介面
預設情況下,運算區會放在 繪圖區旁邊。上方所顯示的工具列會因為你目前所在的視區不同而顯示不同的工具列,若你正在編輯運算區,則上方所顯示的工具列是「運算工具列」;若正在編輯繪圖區,則會切換為「繪圖工具列」。「復原」、「重複」按鈕放置在視窗的右上角。
|
雖然 運算區是運算格局的一部分,但您仍可根據自己的需求來調整 GeoGebra 介面的外觀。
建立物件
直接輸入
運算區讓您能利用 GeoGebra 的代數運算系統 (Computer Algebra System, CAS) 來進行符號運算。它由數個儲存格組成,而每個儲存格上方為指令欄,下方顯示輸出結果。這些指令欄的使用方式與一般的指令列幾乎相同,但有以下的差別:
- 您可使用任何未用過的變數名。範例: 在指令欄輸入
(a+b)^2
後按下 Enter 鍵。您將得到 a²+2ab+b² 。 =
用於方程式而:=
用於設定變數。這表示當您輸入a=2
並不會把 2 這個值指定給 a。更多細節請參閱變數設定。- 進行乘法運算時,必須明確地標示乘號。您可以在指令列輸入
a(b+c)
或a*(b+c)
,但在 運算區只能輸入a*(b+c)
。
直接輸入的快捷鍵
您可在 運算區使用下列快捷鍵,來求解或檢查輸入。
- Enter:執行代數運算
- Ctrl + Enter:執行數值運算 範例:
sqrt(2)
輸出 1.41 - Alt + Enter:檢查輸入但不執行任何運算 範例:
b + b
仍輸出 b + b.
a := 5
,輸出結果為 5。
在 運算區空白指令欄使用下列快捷鍵,可快速擷取上個儲存格的輸入或輸出:
- 空白 鍵:擷取上個儲存格的輸出。
)
:擷取上個儲存格的輸出並加上括號。=
:擷取上個儲存格的輸入。
a := 5;
。變數設定以及變數與其它視區之間的關聯
您可使用符號 :=
來設定變數,例如:b := 5
、a(n) := 2n + 3
。
- 釋放變數名稱:如果要刪除某個變數,可使用
Delete[b]
指令。 - 重新定義變數或函數:您可重新定義變數或函數,但必須在「原來的儲存格」操作,否則將被視為新變數,而且系統會自動賦予這個變數新的名稱。
通常,你所定義的變數或函數,都可共用於運算區及其他視區。例如:
- 若您在運算區定義
b:=5
,則您可在其它視區使用 b 這個變數。 - 若您在其他視區定義函數
f(x)=x^2
,您也可以在運算區使用這個函數。
:=
右式的運算結果,例如:當您鍵入 b:=5
只會輸出 5。方程式
- 您可使用一般的等號來輸入方程式,例如:
3x + 5 = 7
。 - 四則運算您可對整個方程式做四則運算,這在逐步解方程式時很有用。 範例: 輸入
(3x + 5 = 7) - 5
會同時對等式的兩邊減去 5。 - 左式或右式:使用
LeftSide[]
和RightSide[]
指令可傳回方程式的左式或右式。範例:LeftSide[3x + 5 = 7]
傳回 3 x + 5,RightSide[3x + 5 = 7]
則傳回 7。
參照其他列
如果在 運算區要參照其他列,可使用下列兩種方式:
- 靜態參照:這種參照方式會複製被參照列的輸出結果,但假如被參照列的內容之後有被更動,參照列並不會自動更新。
#
:複製前一列的輸出結果。#5
:複製第 5 列的輸出結果。
- 動態參照:這種參照方式會插入被參照列的連結,若被參照列的內容之後有被更動,參照列會自動更新。
$
:插入前一列輸出結果的連結。$5
:插入第 5 列輸出結果的連結。
運算區指令
運算區有運算區專用的指令,讓您能在 運算區建立物件。只要在指令欄開始輸入指令名稱,GeoGebra 會跳出指令清單供您選擇。
CAS View Toolbar
The CAS View Toolbar provides a range of CAS Tools that can be operated with the mouse and allow you to evaluate input and perform calculations. Just enter your input and use the mouse to click on the corresponding CAS Tool afterwards in order to apply it to your input.
Context Menus
Row Header Context Menu
Right click (MacOS: Ctrl-click) on a row header in order to show a Context Menu with the following options:
- Insert Above: Inserts an empty row above the current one.
- Insert Below: Inserts an empty row below the current one.
- Delete Row: Deletes the contents of the current row.
- Text: Toggles between the current result and a text showing the current result contained in the row, which allows the user to insert comments.
- Copy as LaTeX (GeoGebra Desktop): Copies the contents of the current row to your computer’s clipboard, allowing you to paste the contents e.g. in a Text object.
- 備註: To copy the contents of more than one CAS row as LaTeX, select the rows you want with Ctrl-click (MacOS: Cmd-click), then right-click (MacOS: Ctrl-click) on the row header and select Copy as LaTeX.
Cell Context Menu
In GeoGebra Desktop, right click (MacOS: Ctrl-click) on a CAS output cell in order to show a Context Menu with the following options:
- Copy: Copies the cell contents to the your computer’s clipboard. Then, right click on a new cell in order to show the Paste option.
- Copy as LaTeX: Copies the cell contents in LaTeX format to the your computer’s clipboard, so it can be pasted into a Text object or a LaTeX editor.
- Copy as LibreOffice Formula: Copies the cell contents in LibreOffice formula format to your computer’s clipboard, so it can be pasted in a word processing document.
- Copy as Image: Copies the cell contents in PNG format to your computer’s clipboard, so it can be pasted into an Image object or in a word processing document.
Display of Mathematical Objects
CAS View Style Bar
The CAS View Style Bar provides buttons to
- change the text style ( bold and italics) and color
- display a virtual keyboard (GeoGebra Desktop)
- display additional Views in the GeoGebra window (GeoGebra Web and Tablet Apps)
Showing CAS Objects in the Graphics View
In the CAS View, the icon to the left of every row shows the current visibility state (shown or hidden) of the object defined in it (when possible). You may directly click on the little Show / Hide Object icon in order to change the visibility status of the object in the Graphics View.