「內建函數與運算子」修訂間的差異
出自GeoGebra Manual
小 |
|||
行 97: | 行 97: | ||
| nroot(x, n) | | nroot(x, n) | ||
|- | |- | ||
− | |隨機 | + | |隨機 (Random) 函數(回傳 0 到 1 之間的亂數) |
|random( ) | |random( ) | ||
|- | |- | ||
− | |自然指數函數(以尤拉數為底) | + | |自然指數 (Exponential) 函數(以尤拉數為底) |
|exp( ) 或 ℯ<sup>x</sup> | |exp( ) 或 ℯ<sup>x</sup> | ||
|- | |- | ||
− | |自然對數函數(以尤拉數為底) | + | |自然對數 (Natural logarithm) 函數(以尤拉數為底) |
|ln( ) | |ln( ) | ||
|- | |- | ||
− | |對數函數(以 2 為底) | + | |對數 (Logarithm) 函數(以 2 為底) |
|log₂( ) 或 ld( ) | |log₂( ) 或 ld( ) | ||
|- | |- | ||
− | |對數函數(以 10 為底) | + | |對數 (Logarithm) 函數(以 10 為底) |
|log₁₀( ) 或 log( ) 或 lg( ) | |log₁₀( ) 或 log( ) 或 lg( ) | ||
|- | |- | ||
− | |對數函數(以 ''b'' 為底) | + | |對數 (Logarithm) 函數(以 ''b'' 為底) |
|log(b, x ) | |log(b, x ) | ||
|- | |- | ||
− | |餘弦 | + | |餘弦 (Cosine) 函數 |
|cos( ) | |cos( ) | ||
|- | |- | ||
− | |正弦 | + | |正弦 (Sine) 函數 |
|sin( ) | |sin( ) | ||
|- | |- | ||
− | |正切 | + | |正切 (Tangent) 函數 |
|tan( ) | |tan( ) | ||
|- | |- | ||
− | |正割 | + | |正割 (Secant) 函數 |
|sec() | |sec() | ||
|- | |- | ||
− | |餘割 | + | |餘割 (Cosecant) 函數 |
|csc() 或 cosec() | |csc() 或 cosec() | ||
|- | |- | ||
− | |餘切 | + | |餘切 (Cotangent) 函數 |
|cot() 或 cotan() | |cot() 或 cotan() | ||
|- | |- | ||
− | |反餘弦 | + | |反餘弦 (Arc cosine ) 函數(以弧度為單位回傳) |
|acos( ) 或 arccos( ) | |acos( ) 或 arccos( ) | ||
|- | |- | ||
− | |反餘弦 | + | |反餘弦 (Arc cosine ) 函數(以度為單位回傳) |
|acosd( ) | |acosd( ) | ||
|- | |- | ||
− | |反正弦 | + | |反正弦 (Arc sine ) 函數(以弧度為單位回傳) |
|asin( ) 或 arcsin( ) | |asin( ) 或 arcsin( ) | ||
|- | |- | ||
− | |反正弦 | + | |反正弦 (Arc sine ) 函數(以度為單位回傳) |
|asind( ) | |asind( ) | ||
|- | |- | ||
− | |反正切 | + | |反正切 (Arc tangent ) 函數(以弧度為單位回傳,回傳值介於 -π/2 和 π/2 之間) |
|atan( ) 或 arctan( ) | |atan( ) 或 arctan( ) | ||
|- | |- | ||
− | |反正切 | + | |反正切 (Arc tangent ) 函數(以度為單位回傳,回傳值介於 -90° 和 90° 之間) |
|atand( ) | |atand( ) | ||
|- | |- | ||
− | |[https://zh.wikipedia.org/wiki/Atan2 反正切 | + | |[https://zh.wikipedia.org/wiki/Atan2 反正切 (Arc tangent ) 函數(以弧度為單位回傳,回傳值介於 -π 和 π 之間)] |
|atan2(y, x) | |atan2(y, x) | ||
|- | |- | ||
− | |[https://zh.wikipedia.org/wiki/Atan2 反正切 | + | |[https://zh.wikipedia.org/wiki/Atan2 反正切 (Arc tangent ) 函數(以度為單位回傳,回傳值介於 -180° 和 180° 之間)] |
|atan2d(y, x) | |atan2d(y, x) | ||
|- | |- | ||
− | |雙曲餘弦 | + | |雙曲餘弦 (Hyperbolic cosine ) 函數 |
|cosh( ) | |cosh( ) | ||
|- | |- | ||
− | |雙曲正弦 | + | |雙曲正弦 (Hyperbolic sine ) 函數 |
|sinh( ) | |sinh( ) | ||
|- | |- | ||
− | |雙曲正切 | + | |雙曲正切 (Hyperbolic tangent ) 函數 |
|tanh( ) | |tanh( ) | ||
|- | |- | ||
− | |雙曲正割 | + | |雙曲正割 (Hyperbolic secant ) 函數 |
|sech( ) | |sech( ) | ||
|- | |- | ||
− | |雙曲餘割 | + | |雙曲餘割 (Hyperbolic cosecant ) 函數 |
|csch( ) | |csch( ) | ||
|- | |- | ||
− | |雙曲餘切 | + | |雙曲餘切 (Hyperbolic cotangent ) 函數 |
|coth( ) 或 cotanh() | |coth( ) 或 cotanh() | ||
|- | |- | ||
− | |反雙曲餘弦 | + | |反雙曲餘弦 (Antihyperbolic cosine ) 函數 |
|acosh( ) 或 arccosh( ) | |acosh( ) 或 arccosh( ) | ||
|- | |- | ||
− | |反雙曲正弦 | + | |反雙曲正弦 (Antihyperbolic sine ) 函數 |
|asinh( ) 或 arcsinh( ) | |asinh( ) 或 arcsinh( ) | ||
|- | |- | ||
− | |反雙曲正切 | + | |反雙曲正切 (Antihyperbolic tangent ) 函數 |
|atanh( ) 或 arctanh( ) | |atanh( ) 或 arctanh( ) | ||
|- | |- |
於 2021年9月15日 (三) 09:30 的修訂
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版。
要利用指令列建立數值、座標或方程式,您可使用下列內建的函數與運算子。與邏輯相關的運算子與函數列表請參閱「真假值」。
備註: 使用內建函數必須使用圓括號而不是方括號,且函數名稱和圓括號之間不可空白。
運算/函數 | 指令 |
---|---|
ℯ (尤拉數) | Alt + e |
ί (虛數單位) | Alt + i |
π | Alt + p 或 pi |
°(度數符號) | Alt + o 或 deg |
加法 | + |
減法 | - |
乘法 | * 或 空白鍵 |
內積(純量積) | * 或 空白鍵 |
外積(向量積,請參閱點與向量) | ⊗ |
除法 | / |
次方 | ^ 或 上標(x^2 或 x2 )
|
階乘 | ! |
小括號 | ( ) |
取點或向量的 x 坐標 | x( ) |
取點或向量的 y 坐標 | y( ) |
取點或向量的 z 坐標 | z( ) |
求複數(空間中的點或向量)的幅角(Argument) | arg( ) |
求共軛複數(Conjugate) | conjugate( ) |
取複數的實部(Real part) | real( ) |
取複數的虛部(Imaginary part) | imaginary( ) |
取絕對值(Absolute value) | abs( ) |
求空間中點或向量的仰角(Altitude angle) | alt( ) |
求正負號(Sign)(回傳 1、0、-1) | sgn( ) 或 sign() |
不大於某數的最大整數(等同高斯符號) | floor( ) |
不小於某數的的最小整數 | ceil( ) |
(四捨五入)取最近的整數(或至小數點第 y 位) | round(x) 或 round(x, y) |
求平方根(Square root) | sqrt( ) |
求立方根(Cubic root) | cbrt( ) |
求 x 的 n 次方根 | nroot(x, n) |
隨機(Random)函數(回傳 0 到 1 之間的亂數) | random( ) |
自然指數(Exponential)函數(以尤拉數為底) | exp( ) 或 ℯx |
自然對數(Natural logarithm)函數(以尤拉數為底) | ln( ) |
對數(Logarithm)函數(以 2 為底) | log₂( ) 或 ld( ) |
對數(Logarithm)函數(以 10 為底) | log₁₀( ) 或 log( ) 或 lg( ) |
對數(Logarithm)函數(以 b 為底) | log(b, x ) |
餘弦(Cosine)函數 | cos( ) |
正弦(Sine)函數 | sin( ) |
正切(Tangent)函數 | tan( ) |
正割(Secant)函數 | sec() |
餘割(Cosecant)函數 | csc() 或 cosec() |
餘切(Cotangent)函數 | cot() 或 cotan() |
反餘弦(Arc cosine)函數(以弧度為單位回傳) | acos( ) 或 arccos( ) |
反餘弦(Arc cosine)函數(以度為單位回傳) | acosd( ) |
反正弦(Arc sine)函數(以弧度為單位回傳) | asin( ) 或 arcsin( ) |
反正弦(Arc sine)函數(以度為單位回傳) | asind( ) |
反正切(Arc tangent)函數(以弧度為單位回傳,回傳值介於 -π/2 和 π/2 之間) | atan( ) 或 arctan( ) |
反正切(Arc tangent)函數(以度為單位回傳,回傳值介於 -90° 和 90° 之間) | atand( ) |
反正切(Arc tangent)函數(以弧度為單位回傳,回傳值介於 -π 和 π 之間) | atan2(y, x) |
反正切(Arc tangent)函數(以度為單位回傳,回傳值介於 -180° 和 180° 之間) | atan2d(y, x) |
雙曲餘弦(Hyperbolic cosine)函數 | cosh( ) |
雙曲正弦(Hyperbolic sine)函數 | sinh( ) |
雙曲正切(Hyperbolic tangent)函數 | tanh( ) |
雙曲正割(Hyperbolic secant)函數 | sech( ) |
雙曲餘割(Hyperbolic cosecant)函數 | csch( ) |
雙曲餘切(Hyperbolic cotangent)函數 | coth( ) 或 cotanh() |
反雙曲餘弦(Antihyperbolic cosine)函數 | acosh( ) 或 arccosh( ) |
反雙曲正弦(Antihyperbolic sine)函數 | asinh( ) 或 arcsinh( ) |
反雙曲正切(Antihyperbolic tangent)函數 | atanh( ) 或 arctanh( ) |
Beta function Β(a, b) | beta(a, b) |
Incomplete beta function Β(x;a, b) | beta(a, b, x) |
Incomplete regularized beta function I(x; a, b) | betaRegularized(a, b, x) |
Gamma function Γ(x) | gamma( x) |
(Lower) incomplete gamma function γ(a, x) | gamma(a, x) |
(Lower) incomplete regularized gamma function P(a,x) = γ(a, x) / Γ(a) | gammaRegularized(a, x) |
Gaussian Error Function | erf(x) |
Digamma function | psi(x) |
The Polygamma function is the (m+1)th derivative of the natural logarithm of the Gamma function, gamma(x) (m=0,1) | polygamma(m, x) |
The Sine Integral function | sinIntegral(x) |
The Cosine Integral function | cosIntegral(x) |
The Exponential Integral function | expIntegral(x) |
The Riemann-Zeta function ζ(x) | zeta(x) |
Lambert's W function LambertW(x, branch) | LambertW(x, 0), LambertW(x, -1) |
備註: x( )、y( ) 和 z( ) 可分別用來取得平面上直線一般式的 x 係數、y 係數和常數項。