Variadic 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 Variadic Functions

Key wordCategoryDescriptionExampleSince
iffVariadic FunctionIf functioniff(cond-1, expr-1; … ; cond-n, expr-n)1.0
minVariadic FunctionMinimum functionmin(a1, …, an)1.0
maxVariadic FunctionMaximum functionmax(a1, …, an)1.0
ConFracVariadic FunctionContinued fractionConFrac(a1, …, an)1.0
ConPolVariadic FunctionContinued polynomialConPol(a1, …, an)1.0
gcdVariadic FunctionGreatest common divisorgcd(a1, …, an)1.0
lcmVariadic FunctionLeast common multiplelcm(a1, …, an)1.0
addVariadic FunctionSummation operatoradd(a1, …, an)2.4
multiVariadic FunctionMultiplicationmulti(a1, …, an)2.4
meanVariadic FunctionMean / average valuemean(a1, …, an)2.4
varVariadic FunctionBias-corrected sample variancevar(a1, …, an)2.4
stdVariadic FunctionBias-corrected sample standard deviationstd(a1, …, an)2.4
rListVariadic FunctionRandom number from given list of numbersrList(a1, …, an)3.0
coalesceVariadic FunctionReturns the first non-NaN valuecoalesce(a1, …, an)4.1
orVariadic FunctionLogical disjunction (OR) – variadicor(a1, …, an)4.1
andVariadic FunctionLogical conjunction (AND) – variadicand(a1, …, an)4.1
xorVariadic FunctionExclusive or (XOR) – variadicxor(a1, …, an)4.1
argminVariadic FunctionArguments / indices of the minimaargmin(a1, …, an)4.1
argmaxVariadic FunctionArguments / indices of the maximaargmax(a1, …, an)4.1
medVariadic FunctionThe sample medianmed(a1, …, an)4.1
modeVariadic FunctionMode – the value that appears most oftenmode(a1, …, an)4.1
baseVariadic FunctionReturns number in given numeral system base represented by list of digitsbase(b, d1, …, dn)4.1
ndistVariadic FunctionNumber of distinct valuesndist(v1, …, vn)4.1
as of 2022-04-15
Nuget – Package Manager

Install-Package MathParser.org-mXparser -Version 5.0.7

Nuget – .NET CLI

dotnet add package MathParser.org-mXparser --version 5.0.7

Nuget – Package Reference

<PackageReference Include="MathParser.org-mXparser" Version="5.0.7"/>

Maven – Dependency

<dependency>
<groupid>
org.mariuszgromada.math</groupid>
<artifactid>
MathParser.org-mXparser</artifactid>
<version>
5.0.7</version>
</dependency>

Maven – Gradle

implementation 'org.mariuszgromada.math:MathParser.org-mXparser:5.0.7'

Maven – Gradle (Kotlin)

implementation("org.mariuszgromada.math:MathParser.org-mXparser:5.0.7")

GitHub

git clone https://github.com/mariuszgromada/MathParser.org-mXparser

OTHER DOWNLOAD OPTIONS

Download latest release – v.5.0.7 Leonis: .NET bin onlyDownload latest release – v.5.0.7 Leonis: JAVA bin onlyDownload latest release – v.5.0.7 Leonis: bin + doc

NEWS FROM MATHPARSER.ORG
SOURCE CODE

Source code .zipSource code .tar.gz
View on GitHubMathSpace.pl

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