“內建函數與運算子”的版本间的差异
来自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 系数和常数项。