运算区

来自GeoGebra Manual
Nuhero讨论 | 贡献2014年12月12日 (五) 12:41的版本 →‎CAS View Toolbar
跳转至: 导航搜索
Accessories dictionary.png
本页为官方文件,一般使用者无法修改,若有任何误谬,请与官方联络。如欲编辑,请至本页的开放版


Menu view cas.svg 运算区界面

预设情况下,Menu view cas.svg运算区会放在 Menu view graphics.svg绘图区旁边。上方所显示的工具列会因为你目前所在的视区不同而显示不同的工具列,若你正在编辑运算区,则上方所显示的工具列是“运算工具列”;若正在编辑绘图区,则会切换为“绘图工具列”。“复原”、“重复”按钮放置在视窗的右上角。

CAS-View.png


运算区

虽然 Menu view cas.svg运算区运算格局的一部分,但您仍可根据自己的需求来调整 GeoGebra 界面的外观。

建立物件

直接输入

运算区让您能利用 GeoGebra 的代数运算系统 (Computer Algebra System, CAS) 来进行符号运算。它由数个储存格组成,而每个储存格上方为指令栏,下方显示输出结果。这些指令栏的使用方式与一般的指令列几乎相同,但有以下的差别:

  • 您可使用任何未用过的变数名。
    范例:指令栏输入 (a+b)^2 后按下 Enter 键。您将得到 a²+2ab+b²
  • = 用于方程式而 := 用于设定变数。这表示当您输入 a=2 并不会把 2 这个值指定给 a。更多细节请参阅变数设定
  • 进行乘法运算时,必须明确地标示乘号。您可以在指令列输入 a(b+c)a*(b+c),但在 Menu view cas.svg运算区只能输入a*(b+c)

直接输入的快捷键

您可在 Menu view cas.svg运算区使用下列快捷键,来求解或检查输入。

备注: 除了使用这些快捷键之外,您也可使用运算区工具列上的工具
  • Enter:执行代数运算
  • Ctrl + Enter:执行数值运算
    范例: sqrt(2) 输出 1.41
  • Alt + Enter:检查输入但不执行任何运算
    范例: b + b 仍输出 b + b.
备注: 设定变数时,一定会对右式执行运算,例如:输入 a := 5,输出结果为 5。


Menu view cas.svg运算区空白指令栏使用下列快捷键,可快速撷取上个储存格的输入或输出:

  • 空白 键:撷取上个储存格的输出。
  • ):撷取上个储存格的输出并加上括号。
  • =:撷取上个储存格的输入。
备注: 您可在输入的结尾加上分号,则该储存格不会显示输出,例如:a := 5;

变数设定以及变数与其它视区之间的关联

您可使用符号 := 来设定变数,例如:b := 5a(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 + 5RightSide[3x + 5 = 7] 则传回 7

参照其他列

如果在 Menu view cas.svg运算区要参照其他列,可使用下列两种方式:

  • 静态参照:这种参照方式会复制被参照列的输出结果,但假如被参照列的内容之后有被更动,参照列并不会自动更新
    • #:复制前一列的输出结果。
    • #5:复制第 5 列的输出结果。
  • 动态参照:这种参照方式会插入被参照列的连结,若被参照列的内容之后有被更动,参照列会自动更新
    • $:插入前一列输出结果的连结。
    • $5:插入第 5 列输出结果的连结。

运算区指令

Menu view cas.svg运算区运算区专用的指令,让您能在 Menu view cas.svg运算区建立物件。只要在指令栏开始输入指令名称,GeoGebra 会跳出指令清单供您选择。

备注: 详细清单请参阅运算区指令
备注: 从 GeoGebra 4.9.170.0 版开始,Menu view cas.svg运算区支援某些几何指令的代数运算。

运算区工具列

运算区工具列提供许多运算区工具,让您能进行代数运算或数值运算。只要先输入资料,再用鼠标点击对应的运算区工具即可。

Toolbar-CAS.png



Note 提示: 您也可以只选择部分的输入资料,然后针对它进行运算。
备注: 详细工具清单请参阅运算区工具

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

  • Stylingbar text.svg change the text style (Stylingbar text bold.svg bold and Stylingbar text italic.svg italics) and Stylingbar color white.svg color
  • display a virtual keyboard (GeoGebra Desktop)
  • display additional Stylingbar dots.svg Views in the GeoGebra window (GeoGebra Web and Tablet Apps)

Showing CAS Objects in the Menu view graphics.svg Graphics View

In the Menu view cas.svg 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 Mode showhideobject.svg Show / Hide Object icon in order to change the visibility status of the object in the Menu view graphics.svg Graphics View.

© 2024 International GeoGebra Institute