Unary Functions

TO SUPPORT MY WORK, ORDER A COMMERCIAL LICENSE
THANK YOU!

mXparser provides a rich collection of built-in math functions, math expressions, and math symbols. Familiarize yourself with the scope and the syntax. Math collection internal help is also available directly from the software – see the tutorial and the API documentation for all the details.

Tutorial Math Collection API spec Download

mXparser – built-in Unary Functions

Key wordCategoryDescriptionExampleSince
sinUnary FunctionTrigonometric sine functionsin(x)1.0
cosUnary FunctionTrigonometric cosine functioncos(x)1.0
tgUnary FunctionTrigonometric tangent functiontg(x)1.0
tanUnary FunctionTrigonometric tangent functiontan(x)1.0
ctgUnary FunctionTrigonometric cotangent functionctg(x)1.0
cotUnary FunctionTrigonometric cotangent functioncot(x)1.0
ctanUnary FunctionTrigonometric cotangent functionctan(x)1.0
secUnary FunctionTrigonometric secant functionsec(x)1.0
cscUnary FunctionTrigonometric cosecant functioncsc(x)1.0
cosecUnary FunctionTrigonometric cosecant functioncosec(x)1.0
asinUnary FunctionInverse trigonometric sine functionasin(x)1.0
arsinUnary FunctionInverse trigonometric sine functionarsin(x)1.0
arcsinUnary FunctionInverse trigonometric sine functionarcsin(x)1.0
acosUnary FunctionInverse trigonometric cosine functionacos(x)1.0
arcosUnary FunctionInverse trigonometric cosine functionarcos(x)1.0
arccosUnary FunctionInverse trigonometric cosine functionarccos(x)1.0
atgUnary FunctionInverse trigonometric tangent functionatg(x)1.0
atanUnary FunctionInverse trigonometric tangent functionatan(x)1.0
arctgUnary FunctionInverse trigonometric tangent functionarctg(x)1.0
arctanUnary FunctionInverse trigonometric tangent functionarctan(x)1.0
actgUnary FunctionInverse trigonometric cotangent functionactg(x)1.0
acotUnary FunctionInverse trigonometric cotangent functionacot(x)1.0
actanUnary FunctionInverse trigonometric cotangent functionactan(x)1.0
arcctgUnary FunctionInverse trigonometric cotangent functionarcctg(x)1.0
arccotUnary FunctionInverse trigonometric cotangent functionarccot(x)1.0
arcctanUnary FunctionInverse trigonometric cotangent functionarcctan(x)1.0
lnUnary FunctionNatural logarithm function (base e)ln(x)1.0
log2Unary FunctionBinary logarithm function (base 2)log2(x)1.0
lgUnary FunctionCommon logarithm function (base 10)lg(x)5.0
log10Unary FunctionCommon logarithm function (base 10)log10(x)1.0
radUnary FunctionDegrees to radians functionrad(x)1.0
expUnary FunctionExponential functionexp(x)1.0
sqrtUnary FunctionSqure root functionsqrt(x)1.0
sinhUnary FunctionHyperbolic sine functionsinh(x)1.0
coshUnary FunctionHyperbolic cosine functioncosh(x)1.0
tghUnary FunctionHyperbolic tangent functiontgh(x)1.0
tanhUnary FunctionHyperbolic tangent functiontanh(x)1.0
cothUnary FunctionHyperbolic cotangent functioncoth(x)1.0
ctghUnary FunctionHyperbolic cotangent functionctgh(x)1.0
ctanhUnary FunctionHyperbolic cotangent functionctanh(x)1.0
sechUnary FunctionHyperbolic secant functionsech(x)1.0
cschUnary FunctionHyperbolic cosecant functioncsch(x)1.0
cosechUnary FunctionHyperbolic cosecant functioncosech(x)1.0
degUnary FunctionRadians to degrees functiondeg(x)1.0
absUnary FunctionAbsolut value functionabs(x)1.0
sgnUnary FunctionSignum functionsgn(x)1.0
floorUnary FunctionFloor functionfloor(x)1.0
ceilUnary FunctionCeiling functionceil(x)1.0
notUnary FunctionNegation functionnot(x)1.0
asinhUnary FunctionInverse hyperbolic sine functionasinh(x)1.0
arsinhUnary FunctionInverse hyperbolic sine functionarsinh(x)1.0
arcsinhUnary FunctionInverse hyperbolic sine functionarcsinh(x)1.0
acoshUnary FunctionInverse hyperbolic cosine functionacosh(x)1.0
arcoshUnary FunctionInverse hyperbolic cosine functionarcosh(x)1.0
arccoshUnary FunctionInverse hyperbolic cosine functionarccosh(x)1.0
atghUnary FunctionInverse hyperbolic tangent functionatgh(x)1.0
atanhUnary FunctionInverse hyperbolic tangent functionatanh(x)1.0
arctghUnary FunctionInverse hyperbolic tangent functionarctgh(x)1.0
arctanhUnary FunctionInverse hyperbolic tangent functionarctanh(x)1.0
acothUnary FunctionInverse hyperbolic cotangent functionacoth(x)1.0
actghUnary FunctionInverse hyperbolic cotangent functionactgh(x)1.0
actanhUnary FunctionInverse hyperbolic cotangent functionactanh(x)1.0
arcothUnary FunctionInverse hyperbolic cotangent functionarcoth(x)1.0
arccothUnary FunctionInverse hyperbolic cotangent functionarccoth(x)1.0
arcctghUnary FunctionInverse hyperbolic cotangent functionarcctgh(x)1.0
arcctanhUnary FunctionInverse hyperbolic cotangent functionarcctanh(x)1.0
asechUnary FunctionInverse hyperbolic secant functionasech(x)1.0
arsechUnary FunctionInverse hyperbolic secant functionarsech(x)1.0
arcsechUnary FunctionInverse hyperbolic secant functionarcsech(x)1.0
acschUnary FunctionInverse hyperbolic cosecant functionacsch(x)1.0
arcschUnary FunctionInverse hyperbolic cosecant functionarcsch(x)1.0
arccschUnary FunctionInverse hyperbolic cosecant functionarccsch(x)1.0
acosechUnary FunctionInverse hyperbolic cosecant functionacosech(x)1.0
arcosechUnary FunctionInverse hyperbolic cosecant functionarcosech(x)1.0
arccosechUnary FunctionInverse hyperbolic cosecant functionarccosech(x)1.0
SaUnary FunctionSinc function (normalized)Sa(x)1.0
sincUnary FunctionSinc function (normalized)sinc(x)1.0
SincUnary FunctionSinc function (unnormalized)Sinc(x)1.0
BellUnary FunctionBell numberBell(n)1.0
LucUnary FunctionLucas numberLuc(n)1.0
FibUnary FunctionFibonacci numberFib(n)1.0
harmUnary FunctionHarmonic numberharm(n)1.0
isprUnary FunctionPrime number test (is number a prime?)ispr(n)2.3
PiUnary FunctionPrime-counting function – Pi(x)Pi(n)2.3
EiUnary FunctionExponential integral function (non-elementary special function) – usage example: Ei(x)Ei(x)2.3
liUnary FunctionLogarithmic integral function (non-elementary special function) – usage example: li(x)li(x)2.3
LiUnary FunctionOffset logarithmic integral function (non-elementary special function) – usage example: Li(x)Li(x)2.3
erfUnary FunctionGauss error function (non-elementary special function) – usage example: 2 + erf(x)erf(x)3.0
erfcUnary FunctionGauss complementary error function (non-elementary special function) – usage example: 1 – erfc(x)erfc(x)3.0
erfInvUnary FunctionInverse Gauss error function (non-elementary special function) – usage example: erfInv(x)erfInv(x)3.0
erfcInvUnary FunctionInverse Gauss complementary error function (non-elementary special function) – usage example: erfcInv(x)erfcInv(x)3.0
ulpUnary FunctionUnit in The Last Place – ulp(0.1)ulp(x)3.0
isNaNUnary FunctionReturns true = 1 if value is a Not-a-Number (NaN), false = 0 otherwise – usage example: isNaN(x)isNaN(x)4.1
ndig10Unary FunctionNumber of digits in numeral system with base 10ndig10(x)4.1
nfactUnary FunctionPrime decomposition – number of distinct prime factorsnfact(x)4.1
arcsecUnary FunctionInverse trigonometric secantarcsec(x)4.1
arccscUnary FunctionInverse trigonometric cosecantarccsc(x)4.1
GammaUnary FunctionGamma special function Γ(s)Gamma(x)4.2
LambW0Unary FunctionLambert-W special function, principal branch 0, also called the omega function or product logarithmLambW0(x)4.2
LambW1Unary FunctionLambert-W special function, branch -1, also called the omega function or product logarithmLambW1(x)4.2
sgnGammaUnary FunctionSignum of Gamma special function, Γ(s)sgnGamma(x)4.2
logGammaUnary FunctionLog Gamma special function, lnΓ(s)logGamma(x)4.2
diGammaUnary FunctionDigamma function as the logarithmic derivative of the Gamma special function, ψ(x)diGamma(x)4.2
rStudUnary FunctionRandom variable – Student’s t-distributionrStud(v)5.0
rChi2Unary FunctionRandom variable – Chi-squared distributionrChi2(k)5.0
as of 2022-04-15
Nuget
Install-Package MathParser.org-mXparser -Version 5.0.2
Maven
<dependency>
<groupid>org.mariuszgromada.math</groupid>
<artifactid>MathParser.org-mXparser</artifactid>
<version>5.0.2</version>
</dependency>
Gradle
implementation 'org.mariuszgromada.math:MathParser.org-mXparser:5.0.2'
Gradle (Kotlin)
implementation("org.mariuszgromada.math:MathParser.org-mXparser:5.0.2")
GitHub
git clone https://github.com/mariuszgromada/MathParser.org-mXparser
OTHER DOWNLOAD OPTIONS

Download latest release – v.5.0.2 Leonis: bin + docDownload latest release – v.5.0.2 Leonis: bin only, includes separate binaries for various .NET platforms and Java versions
Source code .zipSource code .tar.gz
View on GitHubMathSpace.pl

DONATION
Did you find the software useful?
Please consider donation 🙂
DONATE