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. The math collection library is available at runtime and is fully and identically supported by the Java (including Kotlin, Android), C# (all .NET) and C++ versions.

Tutorial Math Collection API spec Download

mXparser – built-in Variadic Functions

KeywordTypeSyntaxSinceDescription
iffVariadic functioniff(cond-1, expr-1; … ; cond-n, expr-n)1.0If function – Variadic function
minVariadic functionmin(a1, …, an)1.0Minimum – Variadic function
maxVariadic functionmax(a1, …, an)1.0Maximum – Variadic function
ConFracVariadic functionConFrac(a1, …, an)1.0Continued fraction – Variadic function
ConPolVariadic functionConPol(a1, …, an)1.0Continued polynomial – Variadic function
gcdVariadic functiongcd(a1, …, an)1.0Greatest common divisor – Variadic function
lcmVariadic functionlcm(a1, …, an)1.0Least common multiple – Variadic function
addVariadic functionadd(a1, …, an)2.4Summation – Variadic function
multiVariadic functionmulti(a1, …, an)2.4Multiplication – Variadic function
meanVariadic functionmean(a1, …, an)2.4Mean / average value – Variadic function
varVariadic functionvar(a1, …, an)2.4Bias-corrected sample variance – Variadic function
stdVariadic functionstd(a1, …, an)2.4Bias-corrected sample standard deviation – Variadic function
rListVariadic functionrList(a1, …, an)3.0Random number from a given list of numbers – Variadic function
coalesceVariadic functioncoalesce(a1, …, an)4.1Returns the first non-NaN value – Variadic function
orVariadic functionor(a1, …, an)4.1Logical disjunction (OR) – variadic – Variadic function
andVariadic functionand(a1, …, an)4.1Logical conjunction (AND) – variadic – Variadic function
xorVariadic functionxor(a1, …, an)4.1Exclusive or (XOR) – variadic – Variadic function
argminVariadic functionargmin(a1, …, an)4.1Arguments / indices of the minima – Variadic function
argmaxVariadic functionargmax(a1, …, an)4.1Arguments / indices of the maxima – Variadic function
medVariadic functionmed(a1, …, an)4.1The sample median – Variadic function
modeVariadic functionmode(a1, …, an)4.1Mode – the value that appears most often – Variadic function
baseVariadic functionbase(b, d1, …, dn)4.1Returns number in given numeral system base represented by list of digits – Variadic function
ndistVariadic functionndist(v1, …, vn)4.1Number of distinct values – Variadic function
as of 2023-01-29
Nuget – Package Manager (C#, F#, Visual Basic, …)

Install-Package MathParser.org-mXparser -Version 6.1.0

Nuget – .NET CLI

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

Nuget – Package Reference

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

Maven – Dependency (Java, Kotlin, Scala, Groovy, …)

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

Maven – Gradle

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

CMake – Dependency / FetchContent (C++, MSVC, LLVM/Clang, GNU/GCC, MinGW, MSYS2, WSL, Windows, Linux, Unix, MacOS)

include(FetchContent)
FetchContent_Declare(
MathParserOrgMxParser
GIT_REPOSITORY
https://github.com/mariuszgromada/MathParser.org-mXparser.git
GIT_TAG
v.6.1.0
SOURCE_SUBDIR CURRENT/cpp/lib
)
FetchContent_MakeAvailable(
MathParserOrgMxParser)
target_link_libraries(YourExecutable
MathParserOrgMxParser)

GitHub

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

OTHER DOWNLOAD OPTIONS

Download latest release – v.6.1.0 Sagitara: .NET bin onlyDownload latest release – v.6.1.0 Sagitara: JAVA bin onlyDownload latest release – v.6.1.0 Sagitara: bin + doc

NEWS FROM MATHPARSER.ORG
SOURCE CODE

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

My other creative spaces

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