“SurdText 指令”的版本间的差异

来自GeoGebra Manual
跳转至: 导航搜索
 
第6行: 第6行:
 
:*<code>SurdText(2.439230484541326)</code> 建立 ''<math>\frac{7+3 \sqrt{3} }{5}</math>'' 文字。 </div>}}
 
:*<code>SurdText(2.439230484541326)</code> 建立 ''<math>\frac{7+3 \sqrt{3} }{5}</math>'' 文字。 </div>}}
 
;SurdText( <數值>, &lt;串列> )
 
;SurdText( <數值>, &lt;串列> )
:Creates text representation of the number as multiples of the constants in the list. If the list is empty it uses a list of common constants.
+
: 建立文字物件並以 <串列> 中的常數來表示此 <數值>。
 
:{{examples|1=<div>
 
:{{examples|1=<div>
:*<code>SurdText(3.718281828459045, {exp(1)})</code> creates ''<math>e + 1</math>''
+
:*<code>SurdText(3.718281828459045, {exp(1)})</code> 建立 ''<math>e + 1</math>'' 文字。
:*<code>SurdText(5.382332347441762, {sqrt(2), sqrt(3), sqrt(5)})</code> creates ''<math> \sqrt{5} + \sqrt{3} + \sqrt{2}</math>''
+
:*<code>SurdText(5.382332347441762, {sqrt(2), sqrt(3), sqrt(5)})</code> 建立 ''<math> \sqrt{5} + \sqrt{3} + \sqrt{2}</math>'' 文字。
:*<code>SurdText(1.693147180559945, {ln(2)})</code> creates ''<math> \ln(2) + 1</math>''</div>}}
+
:*<code>SurdText(1.693147180559945, {ln(2)})</code>  建立 ''<math> \ln(2) + 1</math>'' 文字。</div>}}
 
;SurdText( <點> )
 
;SurdText( <點> )
:Creates text representation of the point, where coordinates are in the form <math>\frac{a+b\sqrt{c}}{d}</math>.
+
: 建立文字物件並以 <math>\frac{a+b\sqrt{c}}{d}</math> 形式表示此 <點> 的坐標。
:{{example|1=<div><code><nowiki>SurdText((2.414213562373095, 1.414213562373095))</nowiki></code> creates ''(<math>1 + \sqrt{2}, \sqrt{2})</math>''</div>}}
+
:{{example|1=<div><code><nowiki>SurdText((2.414213562373095, 1.414213562373095))</nowiki></code> 建立 ''(<math>1 + \sqrt{2}, \sqrt{2})</math>'' 文字。</div>}}
  
 
{{Notes|1=<div>
 
{{Notes|1=<div>
:* In order to use this command in a Text object, the option '''''LaTeX Formula''''' needs to be enabled in the ''Text'' tab of the [[File:Menu-options.svg|link=|16px]] [[Properties Dialog]] of the text.
+
:* 若要在某個文字物件之內套用此指令,必須在此文字物件 [[File:Menu-options.svg|link=|16px]] [[ 屬性|屬性視窗]]'''文字'''分頁,勾選'''LaTeX 數學式'''選項。
:* Since this command works with a rounded decimal number as input, sometimes the result will be unexpected.
+
:* 由於此指令以四捨五入後的小數作為輸入值,有時候無法產生預期的結果。
:* If a suitable answer can't be found, the number will be returned.
+
:* 若無法找到合適的結果,將會傳回原數值。
::{{example|1=<code><nowiki>SurdText(1.23456789012345)</nowiki></code> returns ''1.23456789012345''.}}
+
::{{example|1=<code><nowiki>SurdText(1.23456789012345)</nowiki></code> 建立 ''1.23456789012345'' 文字。}}
:*See also the [[FractionText Command|FractionText]] and [[ScientificText Command|ScientificText]] commands.</div>}}
+
:* 請參閱 [[FractionText_指令|FractionText]] 以及 [[ScientificText_指令|ScientificText]] 指令。</div>}}

2024年1月3日 (三) 02:51的最新版本

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


SurdText( <數值> )
建立文字物件並以 \frac{a+b\sqrt{c}}{d} 形式表示此 <數值>。
範例:
  • SurdText(2.414213562373095) 建立 1 + \sqrt{2} 文字。
  • SurdText(2.439230484541326) 建立 \frac{7+3 \sqrt{3} }{5} 文字。
SurdText( <數值>, <串列> )
建立文字物件並以 <串列> 中的常數來表示此 <數值>。
範例:
  • SurdText(3.718281828459045, {exp(1)}) 建立 e + 1 文字。
  • SurdText(5.382332347441762, {sqrt(2), sqrt(3), sqrt(5)}) 建立 \sqrt{5} + \sqrt{3} + \sqrt{2} 文字。
  • SurdText(1.693147180559945, {ln(2)}) 建立 \ln(2) + 1 文字。
SurdText( <點> )
建立文字物件並以 \frac{a+b\sqrt{c}}{d} 形式表示此 <點> 的坐標。
範例:
SurdText((2.414213562373095, 1.414213562373095)) 建立 (1 + \sqrt{2}, \sqrt{2}) 文字。
備註:
  • 若要在某個文字物件之內套用此指令,必須在此文字物件 Menu-options.svg 屬性視窗文字分頁,勾選LaTeX 數學式選項。
  • 由於此指令以四捨五入後的小數作為輸入值,有時候無法產生預期的結果。
  • 若無法找到合適的結果,將會傳回原數值。
範例: SurdText(1.23456789012345) 建立 1.23456789012345 文字。
© 2024 International GeoGebra Institute