“物件的命名方式”的版本间的差异

来自GeoGebra Manual
跳转至: 导航搜索
第2行: 第2行:
 
 在利用[[指令列]]建立物件時,您可以幫物件指定一個特定的名稱:
 
 在利用[[指令列]]建立物件時,您可以幫物件指定一個特定的名稱:
  
* [[點與向量|點]]:: In GeoGebra, points are always named using upper case letters. Just type in the name (e.g. A, P) and an equal sign in front of the coordinates or commands.
+
* [[點與向量|點]]: GeoGebra 中,點總是以大寫字母命名。先輸入名稱(例如:A、P),接著輸入等號(=),最後輸入坐標或指令。
:{{example|1=<code>C = (2, 4)</code>, <code> P = (1; 180°)</code>}}
+
:{{example|1=<code>C = (2, 4)</code> <code>P = (1; 180°)</code>}}
* [[點與向量|向量]]:: In order to distinguish between points and vectors, vectors need to have a lower case name in GeoGebra. Again, type in the name (e.g. v, u) and an equal sign in front of the coordinates or commands.
+
* [[點與向量|向量]]: GeoGebra 中為了與點作區別,向量必須以小寫字母命名。同樣地先輸入名稱(例如:v、u),接著輸入等號(=),最後輸入坐標或指令。
:{{example|1=<code>v = (1, 3)</code>, <code> u = (3; 90°)</code>}}
+
:{{example|1=<code>v = (1, 3)</code> <code>u = (3; 90°)</code>}}
* [[直線與坐標軸|直線]]、圓與[[圓椎曲線]]:: These objects can be named by typing in the name and a colon in front of their equations or commands.
+
* [[直線與坐標軸|直線]]、圓與[[圓椎曲線]]: 要命名這些物件時,可以先輸入名稱,接著輸入冒號(: ),最後輸入方程式或指令。
:{{example|1=<code>g: y = x + 3</code>, <code>c: (x-1)^2 + (y – 2)^2 = 4</code>, <code>hyp: x^2 – y^2 = 2</code>}}
+
:{{example|1=<code>g: y = x + 3</code> <code>c: (x-1)^2 + (y – 2)^2 = 4</code> <code>hyp: x^2 – y^2 = 2</code>}}
* [[函數]]: You can name functions by typing, for example, <code>f(x) =</code> or <code>g(x) =</code> in front of the function’s equation or commands.   
+
* [[函數]] :您可以在函數式或指令的前方指定名稱,例如:<code>f(x) =</code> <code>g(x) =</code>
:{{example|1=<code>h(x) = 2 x + 4</code>, <code>q(x) = x^2, trig(x) = sin(x)</code>}}
+
:{{example|1=<code>h(x) = 2 x + 4</code> <code>q(x) = x^2</code>、<code>trig(x) = sin(x)</code>}}
:{{notes|1=
+
{{notes|1=
:* If you don’t manually assign a name to an object, GeoGebra assigns the names of new objects in alphabetical order.
+
:* 若您沒有指定物件的名稱,GeoGebra 會按照字母順序為新物件命名。
:* You can create indices within the names of objects by using an underscore. For example A<sub>1</sub> is entered as <code>A_1</code> and s<sub>AB</sub> is entered as <code>s_{AB}</code> into the ''Input Bar''. }}
+
:* 您可以利用底線(_)為物件名稱加上索引值。例如:在'''指令列'''輸入 <code>A_1</code> 得到 A<sub>1</sub> 、輸入 <code>s_{AB}</code> 得到 s<sub>AB</sub> 。}}
  
 
==保留字==
 
==保留字==

2021年6月17日 (四) 08:24的版本

Accessories dictionary.png
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版


在利用指令列建立物件時,您可以幫物件指定一個特定的名稱:

  • :在 GeoGebra 中,點總是以大寫字母命名。先輸入名稱(例如:A、P),接著輸入等號(=),最後輸入坐標或指令。
範例: C = (2, 4)P = (1; 180°)
  • 向量:在 GeoGebra 中為了與點作區別,向量必須以小寫字母命名。同樣地先輸入名稱(例如:v、u),接著輸入等號(=),最後輸入坐標或指令。
範例: v = (1, 3)u = (3; 90°)
  • 直線、圓與圓椎曲線:要命名這些物件時,可以先輸入名稱,接著輸入冒號(:),最後輸入方程式或指令。
範例: g: y = x + 3c: (x-1)^2 + (y – 2)^2 = 4hyp: x^2 – y^2 = 2
  • 函數:您可以在函數式或指令的前方指定名稱,例如:f(x) =g(x) =
範例: h(x) = 2 x + 4q(x) = x^2trig(x) = sin(x)
備註:
  • 若您沒有指定物件的名稱,GeoGebra 會按照字母順序為新物件命名。
  • 您可以利用底線(_)為物件名稱加上索引值。例如:在指令列輸入 A_1 得到 A1 、輸入 s_{AB} 得到 sAB

保留字

有些單詞在 GeoGebra 裡有特殊意義或作用,通常是內建函數或常數,在為物件命名時,請不要使用它們當作名稱:

x, y, z, xAxis, yAxis, zAxis, abs, sgn, sqrt, exp, log, ln, ld, lg, cos, sin, tan, acos, arcos, arccos, asin, arcsin, atan, arctan, cosh, sinh, tanh, acosh, arcosh, arccosh, asinh, arcsinh, atanh, arctanh, atan2, erf, floor, ceil, round, random, conjugate, arg, gamma, gammaRegularized, beta, betaRegularized, sec, csc, cosec, cot, sech, csch, coth

您可以在指令列的符號箱裡面找到下列常數的特殊字元:

  • π :圓周率 pi,快捷鍵為 Alt + p
  • ℯ :尤拉數,例如用在指數函數 ℯ^x ,快捷鍵為 Alt + e
  • ί :虛數單位,例如用在複數 z = 3 + ί ,快捷鍵為 Alt + i

假如 e 和 i 沒有被用作物件的名稱,那它們會被視為是常數 ℯ 和 ί 。

重新命名物件

要對一個已存在的物件重新命名,最簡單的方式是先點選它,然後直接在鍵盤上(以英數模式)輸入新名稱。

您也可以在此物件的快顯功能表內點選 Menu-edit-rename.svg 重新命名,或是開啟此物件 Menu-options.svg 屬性對話窗一般分頁,在名稱欄位輸入新名稱。

備註:
  • GeoGebra 通常會自動解析相依性,也就是說物件名稱在它的定義內也會跟著修正。若腳本內牽涉的物件有被重新命名,您需要自行手動修正腳本內的物件名稱。
  • 若您指定給某個物件的名稱已經被其他物件使用,那麼前一個同名物件的名稱將被更改。例如:如果將 B 點的名稱改為 AA 點已經存在,則原來這個 A 點會被重新命名為 A1

也請參閱物件名稱與標籤

© 2024 International GeoGebra Institute