“直線與坐標軸”的版本间的差异

来自GeoGebra Manual
跳转至: 导航搜索
→‎Axes
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{objects|geometric}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{objects|geometric}}
==Lines==
+
== 直線==
You can enter a line as a linear equation in ''x'' and ''y'' or in parametric form into the Input Bar. In both cases previously defined variables (e.g. numbers, points, vectors) can be used within the equation.
+
您可將含有 ''x'' ''y'' 的線性方程式或參數式輸入到指令列,藉此畫出一條直線。之前曾經定義過的變數(例如:數值、點、向量),也可以用在這些代數式之中。
{{note|You can enter a line’s name at the beginning of the input followed by a colon.}}
+
{{note| 您可以在一開始先輸入直線的名稱,接著輸入一個冒號(:),最後再輸入直線的代數式。}}
  
{{example|1= 2D <br/>
+
{{example|1= 平面上的直線 <br/>
* Type in <code>g: 3x + 4y = 2</code> to enter line ''g'' as a linear equation.
+
* 輸入 <code>g: 3x + 4y = 2</code> ,以線性方程式畫出直線 ''g''
* You can enter a line in parametric form thus: <code>g: X = (-5, 5) + t (4, -3)</code>
+
* 您可以參數式輸入一條直線,像是:<code>g: X = (-5, 5) + t (4, -3)</code>
* Define the parameters ''m'' = 2 and ''b'' = -1. Then, you can enter the equation <code>h: y = m*x + b</code> to get a line ''h'' in y-intercept-form.}}
+
* 先定義參數 ''m'' = 2 ''b'' = -1 。接著,您可以輸入斜截式 <code>h: y = m*x + b</code> 畫出一條直線 ''h'' }}
  
  
{{example|1= 3D <br/>
+
{{example|1= 空間中的直線 <br/>
* You can enter a line in parametric form thus:
+
* 您可以參數式輸入,畫出一條直線。下列兩種輸入方式結果相同:
** <code>g: X = (1, 6, 3) + λ (7, -4, 4)</code> ; or via
+
** <code>g: X = (1, 6, 3) + λ (7, -4, 4)</code> 
 
** <code>g: Line[(1, 6, 3), Vector[(7, -4, 4)]]</code>
 
** <code>g: Line[(1, 6, 3), Vector[(7, -4, 4)]]</code>
* You can enter a line as an intersection of 2 planes, by one of the following 3 equivalent input :
+
* 您可以兩面式輸入,畫出兩個平面的交線。下列三種輸入方式結果相同:
 
** <code>IntersectPath[4x+7y=46,y+z=9]</code><br/>
 
** <code>IntersectPath[4x+7y=46,y+z=9]</code><br/>
 
** <code>(4x + 7y = 46, y + z = 9)</code><br/>
 
** <code>(4x + 7y = 46, y + z = 9)</code><br/>
第20行: 第20行:
 
}}
 
}}
  
==Axes==
+
== 坐標軸==
The two coordinate axes are available in commands using the names ''xAxis'' and ''yAxis''.
+
可以將兩個坐標軸以 ''xAxis'' ''yAxis'' 作為名稱,引入到指令內使用。
{{example|1=The command <code>[[PerpendicularLine Command|PerpendicularLine]][A, xAxis]</code> constructs the perpendicular line to the x-axis through a given point A. }}
+
{{example|1= 輸入指令 <code>[[PerpendicularLine_指令|PerpendicularLine]][A, xAxis]</code> 將會畫出通過 ''A'' 點且垂直 ''x'' 軸的直線。}}

2021年6月3日 (四) 03:39的最新版本

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


直線

您可將含有 xy 的線性方程式或參數式輸入到指令列,藉此畫出一條直線。之前曾經定義過的變數(例如:數值、點、向量),也可以用在這些代數式之中。

備註: 您可以在一開始先輸入直線的名稱,接著輸入一個冒號(:),最後再輸入直線的代數式。
範例: 平面上的直線
  • 輸入 g: 3x + 4y = 2,以線性方程式畫出直線 g
  • 您可以參數式輸入一條直線,像是:g: X = (-5, 5) + t (4, -3)
  • 先定義參數 m = 2 和 b = -1。接著,您可以輸入斜截式 h: y = m*x + b 畫出一條直線 h


範例: 空間中的直線
  • 您可以參數式輸入,畫出一條直線。下列兩種輸入方式結果相同:
    • g: X = (1, 6, 3) + λ (7, -4, 4)
    • g: Line[(1, 6, 3), Vector[(7, -4, 4)]]
  • 您可以兩面式輸入,畫出兩個平面的交線。下列三種輸入方式結果相同:
    • IntersectPath[4x+7y=46,y+z=9]
    • (4x + 7y = 46, y + z = 9)
    • 7y = 46 - 4x = 7(9 - z)

坐標軸

可以將兩個坐標軸以 xAxisyAxis 作為名稱,引入到指令內使用。

範例: 輸入指令 PerpendicularLine[A, xAxis] 將會畫出通過 A 點且垂直 x 軸的直線。

Comments

取得平面直線一般式的各項係數[编辑]

您可以取出直線 a: 2.2 x + 3.3 y = 4.4 的各項係數。

  • x(a) 傳回 x 項係數 2.2
  • y(a) 傳回 y 項係數 3.3
  • z(a) 傳回常數項 -4.4(因為 GeoGebra 在程式內部其實是將直線儲存成一般式 2.2 x + 3.3 y - 4.4 = 0

更多資訊請參閱:Coefficients_指令

© 2024 International GeoGebra Institute