Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

org.mariuszgromada.math:MathParser.org-mXparser

Package Overview
Dependencies
Maintainers
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

org.mariuszgromada.math:MathParser.org-mXparser

mXparser is a super easy, rich, fast and highly flexible math expression parser library (parser and evaluator of mathematical expressions / formulas provided as plain text / string). Software delivers easy to use API for JAVA, Android and C# .NET/MONO (Common Language Specification compliant: F#, Visual Basic, C++/CLI). *** If you find the software useful donation or purchase is something you might consider: https://mathparser.org/donate/ *** Online store: https://payhip.com/INFIMA *** Scalar Scientific Calculator, Charts and Scripts, Scalar Lite: https://play.google.com/store/apps/details?id=org.mathparser.scalar.lite *** Scalar Pro: https://play.google.com/store/apps/details?id=org.mathparser.scalar.pro *** ScalarMath.org: https://scalarmath.org/ *** MathSpace.pl: https://mathspace.pl/ ***

  • 6.0.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
5
Source

MathParser.org-mXparser has been downloaded more than 3,000,000 times!

mXparser icon Subscription-Form

mXparser - a super easy, rich and highly flexible Mathematical Expression Parser (Math Parser, Expression Evaluator) library for JAVA, Android, C# .NET, TypeScript and JavaScript.

v.5.2.1 (2023-02-08): Orion: Improvement and standardization of descriptions and messages. Definition of your own translations. Exporting help in multiple formats. Clones for thread safe. Performance improvement.

v.5.1 Libris: Implied Multiplication, Unicode Math Symbols, Additional Probability Distributions, Calculation Steps Register, Serialization Support

Package installation

Nuget - Packgae Manager

Install-Package MathParser.org-mXparser -Version 5.2.1

Nuget – .NET CLI

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

Nuget – Package Reference

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

Maven - Dependency

<dependency>
    <groupId>org.mariuszgromada.math</groupId>
    <artifactId>MathParser.org-mXparser</artifactId>
    <version>5.2.1</version>
</dependency>

Maven - Gradle

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

Maven – Gradle (Kotlin)

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

NPM

$ npm i mathparser.org-mxparser

INFIMA

Scalar Scientific Calculator, Charts & Scripts

Scalar-Lite

>>> Click Here to see Scalar in action <<<

Scalar - Free version

Scalar Pro - Full paid version

MathParser.org-mXparser

mXparser is a highly flexible parser of mathematical expressions provided as text. Software delivers easy to use API for JAVA, C# .NET, TypeScript and JavaScript.

Supported frameworks

mXparser frameworks

  • JAVA: 6+
  • Android - tested with mxparser compiled using jdk 1.7
  • .NET Framework (2+) / MONO CLS, .NET Core: 1+, .NET Standard: 1+, .NET PCL
  • Xamarin
  • TypeScript, JavaScript
  • Chrome, Firefox, MS Edge, Safari
  • nodeJS

Tutorial

The tutorial consists of c.a. 180 live examples from c.a. 40 sections. Each of the examples can be copied and run on your own environment. In addition, mXparser provides an extensive collection of over 500 built-in math functions, expressions and symbols. Familiarize yourself with the scope and the syntax. Live testing is the best way to learn. Good luck!

Using internal help

  • Full help content
  • In-line help searching

Simple expressions

  • Simple calculation
  • Changing expression string
  • Using operators
  • Power function
  • Using numbers in scientific notation
  • Percent sign
  • Leading zeros

Implied multiplication

  • Numbers and parenthesis
  • Numbers and constants / arguments
  • Numbers and constants / arguments and parenthesis
  • Numbers and constants / arguments and parenthesis and functions
  • Implied multiplication and possible ambiguity
  • Implied multiplication and list of tokens
  • Enable / disable implied multiplication

Evaluating relations

  • Binary relation “=”
  • Binary relation “<“
  • Boolean operator “OR”
  • Boolean operator “AND”

Using built-in functions

  • Unary function
  • Binary function
  • Function with 3 arguments
  • Function with n-arguments
  • Function with even number of arguments

User defined constants

  • Defining constant – various options

User defined arguments

  • Dealing with free arguments
  • Defining dependent arguments
  • Implementing your own Argument Extension
  • Getting list of missing user defined arguments
  • Possible conflict between Implied Multiplication and getting list of missing user defined arguments + recommended solutions

User defined functions

  • Fast function definition (performance of creation)
  • Handy function constructor, but slower proces of function creation (performance of creation slower, but calculation the same)
  • Function with more parameters
  • Function in function
  • Implementing your own Function Extension
  • Getting list of missing user defined functions
  • Possible conflict between Implied Multiplication and getting list of missing user defined functions + recommended solutions

Expression pre-compilation

  • What is pre-compilation?
  • When is pre-compilation done?
  • When is pre-compilation done again?
  • An example of bad practice in computing the value of an expression for a changing argument value
  • An example of good practice in computing the value of an expression for a changing argument value

Variadic user defined functions

  • Function returning number of parameters provided
  • Function returning sum of first and last parameter provided
  • Function returning parameter at position defined by the first parameter
  • Function returning sum of all parameters squared
  • Implementing your own Variadic Function Extension

“if” and “iff” functions

  • Mechanics of the if function
  • “if” function and arguments
  • “if” function in user defined function
  • Mechanics of the “iff” function
  • iff function is not limited in number of cases

Summation & Product iterated operators

  • SIGMA summation operator
  • PI product operator
  • SIGMA summation operator – Approximating sin(x) by Taylor series
  • SIGMA summation operator – Approximating pi value by integrating sqrt(1-x^2)

Derivatives & Integrals

  • General derivative
  • Left / right derivative
  • Derivative from more complex function
  • Derivative – alternative syntax
  • Integrals – calculating pi by integration sqrt(1-x^2)

Solving equation f(x) = 0

  • Solve 2x-4 = 0 for x in [0, 10]
  • Solve cos(x) = 0 for x in [0, pi]
  • Solve cos(x) = 0 for x in [pi, pi] (root not bracketed)
  • Solve x-y = 0 for x in [0, 10] and y = 4
  • Solve sin'(x) = 0 for x in [0, pi]

Prime Numbers

  • Primality test function
  • Primes counting function
  • Using built-in primes cache to accelerate calculations
  • Estimating number of primes using Offset logarithmic integral function
  • Prime factorization

Built-in constants

  • Using built-in constants
  • Estimating Moon gravitational acceleration
  • Getting list of constants

Built-in Units

  • Units of length / distance
  • Units of time
  • Units of information
  • Units of volume
  • Express 4 feet in inches
  • Express in square kilometers the area of a rectangle measuring 100 meters by 2 kilometers
  • List of supported units

Built-in Metric prefixes

  • Example: 10 Millions / Kilo
  • List of supported metric prefixes

PDF, CDF and Quantile functions

  • Expected value estimation using Probability Distribution Function
  • Probability estimation using Cumulative Distribution Function – the law of 3*SIGMA
  • Calculating quantiles using Inverse Cumulative Distribution Function – males height example assuming males height distribution N(170, 15)

Random numbers

  • Random number from uniform continuous distribution
  • Random number from uniform discrete distribution
  • Random number from normal distribution
  • Random number from a given list
  • Estimating mean of Normal distribution
  • Estimating standard deviation of Normal distribution
  • Estimating variance of Normal distribution

Built-in Random Variables

  • Random integer
  • Random integer N: -10^k <= N <= 10^k for k = 1, 2, …,9
  • Random natural number
  • Random natural number N <= 10^k for k = 1, 2, …,9
  • Uniform continuous distribution U(0,1)
  • Normal distribution N(0,1)

User defined Random Variables

  • Dependent argument as user defined random variable
  • User defined function as user defined random variable – random walk example

Bitwise Operators

  • Bitwise unary complement
  • Bitwise AND
  • Bitwise exclusive OR
  • Bitwise inclusive OR
  • Signed left / right shift

Fractions

  • Fraction (proper) as Number Literal
  • Improper Fraction as Number Literal
  • Fraction (Mixed Number) as Number Literal
  • Fraction (Mixed Numer) and Improper Fraction in one Number Literal
  • Operations on Fractions
  • Represent double as Fraction

Various numeral systems

  • Binary number
  • Octal number
  • Hexadecimal number
  • Unary number
  • Unary zero
  • Base 1 – 36 number literals
  • Base N numeral system

Fast (limited) user defined recursion

  • Fibonacci numbers using fast recursion

User defined recursion – not limited

  • Fibonacci numbers using user defined recursive function
  • Number of recursive parameters is not limited – binomial coefficient definition using user defined recursive function
  • Mixing function parameters – part causing recursive calls, other part as ‘typical’ parameter. Below example is presenting definition of Chebyshev polynomial using recursive function.
  • Indirect recursion – approximating sin(x) and cos(x)

Unicode math

  • The square root √
  • The square root of the square root √√
  • The square root and parenthesis √()
  • The roots of various orders ∜ ∛ √
  • SIGMA summation operator ∑
  • Unicode name of a user defined argument
  • Show all Unicode built-in keywords
  • Enable / disable Unicode built-in keywords
  • List of Unicode symbols that grammar accepts

Working with NaN – Not-a-Number

  • NaN in condition
  • NaN symbol
  • First non-NaN value

Radians Mode / Degrees Mode

  • Basic trigonometric function
  • Inverse trigonometric function
  • Using units of angle being in radians mode

Calculation Steps Register

  • Simple Expression
  • Dependent User Argument
  • User Function
  • Expression referencing User Argument and User Function

Inspecting calculation process

  • Setting the verbose mode
  • Syntax checking
  • Lexical syntax checking
  • Getting computing time

Playing with expression tokens

  • Printing expression tokens
  • Using tokens to print expression in a fancy way
  • Playing with invalid tokens

Built-in tokens (key words) manipulation

  • Removing built-in tokens
  • Modifying built-in tokens
  • Overriding built-in tokens

Smart rounding settings

  • A few words on Floating Point Math
  • Why mXparser is based on the double data type?
  • Smart rounding options available in mXparser
  • Check which rounding settings are currently active
  • Example - Only Canonical Rounding option is active
  • Example - Only Unit In The Last Place Rounding option is active
  • Example - Only Almost Integer Rounding option is active
  • Example - None of the rounding options are active

Efficient calculations in the loops

  • User expression in the loop + output
  • User function in the loop + output
  • User argument (dependent) in the loop + output
  • User expression in the loop – Performance
  • User function in the loop – Performance
  • User argument (dependent) in the loop – Performance

Extensive list of settings

  • Degrees / Radians Mode
  • Attempt To Fix Expression String Mode
  • Primes Cache
  • Epsilon Comparison / Exact Comparison Mode
  • Canonical Rounding Mode
  • ULP (Unit In The Last Place) Rounding Mode
  • Almost Integers Rounding Mode
  • Implied Multiplication Mode
  • Unicode Builtin Key Words Mode
  • Verbose / Silent Mode
  • Override Builtin Tokens Mode
  • Modify Builtin Tokens Mode
  • Remove Builtin Tokens Mode
  • Current Calculation Cancellation
  • Setting Console Prefix
  • Reaching Console Output String
  • Maximum Allowed Recursion Depth
  • Double to Fraction Conversion
  • Random Generator Selection
  • Maximum Threads Number
  • Default Settings

Serialization & Deserialization

  • SerializationUtils class
  • Binary serialization SECURITY WARNING
  • Enabling / Disabling binary serialization
  • Expression serialization / deserialization from / to byte[]
  • Expression serialization / deserialization from / to String
  • Expression serialization / deserialization from / to File
  • Serialization / Deserialization of complex objects

>>> Click to learn from examples <<<

Math Collection

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.

- Operators

- Binary Relations

- Boolean Operators

- Bitwise Operators

- Unary Functions

- Binary Functions

- 3-args Functions

- Variadic Functions

- Random Variables

- Iterated Operators

- Calculus Operators

- Mathematical Constants

- Physical Constants

- Astronomical Constants

- Metric prefixes

- Units

- Parser Symbols

- Number formats

API documentation

- API documentation

Did you find the software useful?

JAVA intro

mXparser demo

C# intro

mXparser demo - csharp

TypeScript intro

mXparser demo - TypeScript

Main functionalities:

High flexibility functionalities

Project documentation

- mXparser - API (english)

- mXparser - WIKI (english)

- mXparser - Tutorial (english)

- MathSpace.pl - site about math with mXparser examples (polish)

- MathParser.org - site about mXparser (english)

paypal

mXparser in nutshell

You want simple calculator...

calc

Expression e = new Expression("2+3");
e.calculate();

:+1:

A calculator supporting parenthesis...

parenth

Expression e = new Expression("2+(3-5)^2");
e.calculate();

:+1:

You care about predefined constants...

const

Expression e = new Expression("2*pi");
e.calculate();

:+1:

You need to define your own constants...

const-user

Constant tau = new Constant("tau = 2*pi");
Expression e = new Expression("3*tau", tau);
e.calculate();

:+1:

You enjoy using many built-in functions...

sinx

Expression e = new Expression("sin(2*pi)");
e.calculate();

:+1:

You do not limit yourself to unary functions...

fun-variadic

Expression e = new Expression("gcd(2,5,10,30)");
e.calculate();

:+1:

What about user defined arguments...

arg-free

Argument x = new Argument("x = 5");
Expression e = new Expression("sin(x)", x);
e.calculate();

:+1:

You are considering dependent arguments...

arg-dep

Argument x = new Argument("x = 5");
Argument y = new Argument("y = 2*x", x);
Expression e = new Expression("sin(y)", y);
e.calculate();

:+1:

You need to apply some logic...

if-then

Argument x = new Argument("x = 5");
Expression e = new Expression("if(sin(x) > 5, 1, 0)", x);
e.calculate();

:+1:

Yes, you are right, there is a support for Boolean algebra!

true-false

Expression e = new Expression("5=6");
e.calculate();

:+1:

And for binary relations as well!
Expression e = new Expression("5 <= 6");
e.calculate();

:+1:

mXparser is cool! But this is only the beginning, we are just warming up!

You want to play with iterated operators...

sum

Expression e = new Expression("sum(i, 1, 10, 2*i^2 + pi)");
e.calculate();

:+1:

You want to iterate differently by not necessarily whole numbes...

prod

Expression e = new Expression("prod(i, 1, 5, i, 0.5)");
e.calculate();

:+1:

You want to have more fun with math...
Argument x = new Argument("x = pi/2");
Expression e20 = new Expression("sum(n,0,10,(-1)^n*(x^(2*n+1))/(2*n+1)!)", x);
e.calculate();

:+1:

You still want more fun with calculus operations, i.e. differentiation...

der

Argument x = new Argument("x = pi/2");
Expression e = new Expression("cos(x)-der(sin(x), x)", x);
e.calculate();

:+1:

And definite integrals as well...

int

Expression e = new Expression("2*int(sqrt(1-x^2), x, -1, 1)");
e.calculate();

:+1:

mXparser is even cooler! It is time to ask about ...

user defined functions...

fun-user

Function f = new Function("f(x,y) = sin(x) + cos(y)");
f.calculate(1,2);
Expression e = new Expression("f(1,2) - 10", f);
e.calculate();

:+1:

Recursion is your desire...

recur

Function f = new Function("f(n) = if( n>0, n*f(n-1), 1)");
f.calculate()

:+1:

Any kind of recursion...
Function Cnk = new Function("Cnk(n,k) = if(k>0, if(k<n, Cnk(n-1,k-1)+Cnk(n-1,k), 1), 1)");
Cnk.calculate()

:+1:

If anything above matches you then mXparser is a good choice!

mXparser can interact with end users as it supports syntax checking.

syntax

Expression e = new Expression("2+1/a");
e.checkSyntax();
mXparser.consolePrintln(e.getErrorMessage());

Built-in tokens

Number format

Key wordCategoryDescriptionExampleSince
NumberDecimal NumberDecimal number1, 1.5, -2.31.0
NumberDecimal NumberDecimal number - scientific notation1.2e10, -2.4e-10, 2.3E+104.0
NumberBinary NumberBinary number - number literalb.10101, B.10101, b2.100104.1
NumberOctal NumberOctal number - number literalo.1027, O.1027, b8.10274.1
NumberHexadecimal NumberHexadecimal number - number literalh.12fE, H.12fE, b16.12fE4.1
NumberUnary NumberUnary number - number literalb1.111 , B1.1114.1
NumberBase 1-36Base 1-36 number - number literalbN.xxxx , BN.xxxx4.1
NumberFractionNumber literal as fraction1_2 , 2_3_4, 172_345, 345_1724.3

Operators

KeywordTypeSyntaxSinceDescription
+Operatora + b1.0Addition - Operator
-Operatora - b1.0Subtraction - Operator
*Operatora * b1.0Multiplication - Operator
×Operatora × b5.0Multiplication - Operator - Unicode math symbol
Operatora ⨉ b5.0Multiplication - Operator - Unicode math symbol
Operatora ∙ b5.0Multiplication - Operator - Unicode math symbol
/Operatora / b1.0Division - Operator
÷Operatora ÷ b5.0Division - Operator - Unicode math symbol
^Operatora^b1.0Exponentiation - Operator
!Operatorn!1.0Factorial - Operator
#Operatora # b1.0Modulo - Operator
%Operatorn%4.1Percentage - Operator
^^Operatora^^b4.2Tetration (hyper-4, power tower, exponential tower) - Operator
Operator√x5.0Square root - Operator - Unicode math symbol
Operator∛x5.0Cube root - Operator - Unicode math symbol
Operator∜x5.0Fourth root - Operator - Unicode math symbol

Boolean Operators

KeywordTypeSyntaxSinceDescription
&Boolean operatorp & q1.0Logical conjunction AND - Boolean operator
Boolean operatorp ∧ q5.0Logical conjunction AND - Boolean operator - Unicode math symbol
&&Boolean operatorp && q1.0Logical conjunction AND - Boolean operator
/\Boolean operatorp /\ q1.0Logical conjunction AND - Boolean operator
Boolean operatorp ⊼ q5.0Sheffer stroke NAND - Boolean operator - Unicode math symbol
~&Boolean operatorp ~& q1.0Sheffer stroke NAND - Boolean operator
~∧Boolean operatorp ~∧ q5.0Sheffer stroke NAND - Boolean operator - Unicode math symbol
¬&Boolean operatorp ¬& q5.0Sheffer stroke NAND - Boolean operator - Unicode math symbol
¬∧Boolean operatorp ¬∧ q5.0Sheffer stroke NAND - Boolean operator - Unicode math symbol
~&&Boolean operatorp ~&& q1.0Sheffer stroke NAND - Boolean operator
~/\Boolean operatorp ~/\ q1.0Sheffer stroke NAND - Boolean operator
¬&&Boolean operatorp ¬&& q5.0Sheffer stroke NAND - Boolean operator - Unicode math symbol
¬/\Boolean operatorp ¬/\ q5.0Sheffer stroke NAND - Boolean operator - Unicode math symbol
|Boolean operatorp | q1.0Logical disjunction OR - Boolean operator
Boolean operatorp ∨ q5.0Logical disjunction OR - Boolean operator - Unicode math symbol
||Boolean operatorp || q1.0Logical disjunction OR - Boolean operator
\/Boolean operatorp \/ q1.0Logical disjunction OR - Boolean operator
Boolean operatorp ⊽ q5.0Logical not or (joint denial) NOR - Boolean operator - Unicode math symbol
~|Boolean operatorp ~| q1.0Logical not or (joint denial) NOR - Boolean operator
~∨Boolean operatorp ~∨ q5.0Logical not or (joint denial) NOR - Boolean operator - Unicode math symbol
¬|Boolean operatorp ¬| q5.0Logical not or (joint denial) NOR - Boolean operator - Unicode math symbol
¬∨Boolean operatorp ¬∨ q5.0Logical not or (joint denial) NOR - Boolean operator - Unicode math symbol
~||Boolean operatorp ~|| q1.0Logical not or (joint denial) NOR - Boolean operator
~\/Boolean operatorp ~\/ q1.0Logical not or (joint denial) NOR - Boolean operator
¬||Boolean operatorp ¬|| q5.0Logical not or (joint denial) NOR - Boolean operator - Unicode math symbol
¬\/Boolean operatorp ¬\/ q5.0Logical not or (joint denial) NOR - Boolean operator - Unicode math symbol
Boolean operatorp ⊻ q5.0Exclusive or XOR - Boolean operator - Unicode math symbol
(+)Boolean operatorp (+) q1.0Exclusive or XOR - Boolean operator
Boolean operatorp ⇒ q5.0Implication IMP - Boolean operator - Unicode math symbol
-->Boolean operatorp --> q1.0Implication IMP - Boolean operator
Boolean operatorp ⇐ q5.0Converse implication CIMP - Boolean operator - Unicode math symbol
<--Boolean operatorp <-- q1.0Converse implication CIMP - Boolean operator
Boolean operatorp ⇏ q5.0Material nonimplication NIMP - Boolean operator - Unicode math symbol
-/>Boolean operatorp -/> q1.0Material nonimplication NIMP - Boolean operator
Boolean operatorp ⇍ q5.0Converse nonimplication CNIMP - Boolean operator - Unicode math symbol
</-Boolean operatorp </- q1.0Converse nonimplication CNIMP - Boolean operator
Boolean operatorp ⇔ q5.0Logical biconditional EQV - Boolean operator - Unicode math symbol
<->Boolean operatorp <-> q1.0Logical biconditional EQV - Boolean operator
~Boolean operator~p1.0Negation - Boolean operator
¬Boolean operator¬p5.0Negation - Boolean operator - Unicode math symbol

Bitwise Operators

KeywordTypeSyntaxSinceDescription
@~Bitwise operator@~a4.0Bitwise unary complement - Bitwise operator
@&Bitwise operatora @& b4.0Bitwise and AND - Bitwise operator
@^Bitwise operatora @^ b4.0Bitwise exclusive or XOR - Bitwise operator
@|Bitwise operatora @| b4.0Bitwise inclusive or OR - Bitwise operator
@<<Bitwise operatora @<< b4.0Signed left shift - Bitwise operator
@>>Bitwise operatora @>> b4.0Signed right shift - Bitwise operator

Binary Relations

KeywordTypeSyntaxSinceDescription
=Binary relationa = b1.0Equality - Binary relation
==Binary relationa == b1.0Equality - Binary relation
Binary relationa ≠ b5.0Inequation - Binary relation - Unicode math symbol
<>Binary relationa <> b1.0Inequation - Binary relation
~=Binary relationa ~= b1.0Inequation - Binary relation
!=Binary relationa != b1.0Inequation - Binary relation
<Binary relationa < b1.0Lower than - Binary relation
>Binary relationa > b1.0Greater than - Binary relation
Binary relationa ≤ b5.0Lower or equal - Binary relation - Unicode math symbol
Binary relationa ⋜ b5.0Lower or equal - Binary relation - Unicode math symbol
<=Binary relationa <= b1.0Lower or equal - Binary relation
Binary relationa ≥ b5.0Greater or equal - Binary relation - Unicode math symbol
Binary relationa ⋝ b5.0Greater or equal - Binary relation - Unicode math symbol
>=Binary relationa >= b1.0Greater or equal - Binary relation

Unary Functions

KeywordTypeSyntaxSinceDescription
sinUnary functionsin(x)1.0Trigonometric sine - Unary function
cosUnary functioncos(x)1.0Trigonometric cosine - Unary function
tgUnary functiontg(x)1.0Trigonometric tangent - Unary function
tanUnary functiontan(x)1.0Trigonometric tangent - Unary function
ctgUnary functionctg(x)1.0Trigonometric cotangent - Unary function
cotUnary functioncot(x)1.0Trigonometric cotangent - Unary function
ctanUnary functionctan(x)1.0Trigonometric cotangent - Unary function
secUnary functionsec(x)1.0Trigonometric secant - Unary function
cscUnary functioncsc(x)1.0Trigonometric cosecant - Unary function
cosecUnary functioncosec(x)1.0Trigonometric cosecant - Unary function
asinUnary functionasin(x)1.0Inverse trigonometric sine - Unary function
arsinUnary functionarsin(x)1.0Inverse trigonometric sine - Unary function
arcsinUnary functionarcsin(x)1.0Inverse trigonometric sine - Unary function
acosUnary functionacos(x)1.0Inverse trigonometric cosine - Unary function
arcosUnary functionarcos(x)1.0Inverse trigonometric cosine - Unary function
arccosUnary functionarccos(x)1.0Inverse trigonometric cosine - Unary function
atgUnary functionatg(x)1.0Inverse trigonometric tangent - Unary function
atanUnary functionatan(x)1.0Inverse trigonometric tangent - Unary function
arctgUnary functionarctg(x)1.0Inverse trigonometric tangent - Unary function
arctanUnary functionarctan(x)1.0Inverse trigonometric tangent - Unary function
actgUnary functionactg(x)1.0Inverse trigonometric cotangent - Unary function
acotUnary functionacot(x)1.0Inverse trigonometric cotangent - Unary function
actanUnary functionactan(x)1.0Inverse trigonometric cotangent - Unary function
arcctgUnary functionarcctg(x)1.0Inverse trigonometric cotangent - Unary function
arccotUnary functionarccot(x)1.0Inverse trigonometric cotangent - Unary function
arcctanUnary functionarcctan(x)1.0Inverse trigonometric cotangent - Unary function
lnUnary functionln(x)1.0Natural logarithm (base e) - Unary function
log2Unary functionlog2(x)1.0Binary logarithm (base 2) - Unary function
lgUnary functionlg(x)5.0Common logarithm (base 10) - Unary function
log10Unary functionlog10(x)1.0Common logarithm (base 10) - Unary function
radUnary functionrad(x)1.0Degrees to radians - Unary function
expUnary functionexp(x)1.0Exponential - Unary function
sqrtUnary functionsqrt(x)1.0Squre root - Unary function
sinhUnary functionsinh(x)1.0Hyperbolic sine - Unary function
coshUnary functioncosh(x)1.0Hyperbolic cosine - Unary function
tghUnary functiontgh(x)1.0Hyperbolic tangent - Unary function
tanhUnary functiontanh(x)1.0Hyperbolic tangent - Unary function
cothUnary functioncoth(x)1.0Hyperbolic cotangent - Unary function
ctghUnary functionctgh(x)1.0Hyperbolic cotangent - Unary function
ctanhUnary functionctanh(x)1.0Hyperbolic cotangent - Unary function
sechUnary functionsech(x)1.0Hyperbolic secant - Unary function
cschUnary functioncsch(x)1.0Hyperbolic cosecant - Unary function
cosechUnary functioncosech(x)1.0Hyperbolic cosecant - Unary function
degUnary functiondeg(x)1.0Radians to degrees - Unary function
absUnary functionabs(x)1.0Absolut value - Unary function
sgnUnary functionsgn(x)1.0Signum - Unary function
floorUnary functionfloor(x)1.0Floor - Unary function
ceilUnary functionceil(x)1.0Ceiling - Unary function
notUnary functionnot(x)1.0Negation - Unary function
asinhUnary functionasinh(x)1.0Inverse hyperbolic sine - Unary function
arsinhUnary functionarsinh(x)1.0Inverse hyperbolic sine - Unary function
arcsinhUnary functionarcsinh(x)1.0Inverse hyperbolic sine - Unary function
acoshUnary functionacosh(x)1.0Inverse hyperbolic cosine - Unary function
arcoshUnary functionarcosh(x)1.0Inverse hyperbolic cosine - Unary function
arccoshUnary functionarccosh(x)1.0Inverse hyperbolic cosine - Unary function
atghUnary functionatgh(x)1.0Inverse hyperbolic tangent - Unary function
atanhUnary functionatanh(x)1.0Inverse hyperbolic tangent - Unary function
arctghUnary functionarctgh(x)1.0Inverse hyperbolic tangent - Unary function
arctanhUnary functionarctanh(x)1.0Inverse hyperbolic tangent - Unary function
acothUnary functionacoth(x)1.0Inverse hyperbolic cotangent - Unary function
actghUnary functionactgh(x)1.0Inverse hyperbolic cotangent - Unary function
actanhUnary functionactanh(x)1.0Inverse hyperbolic cotangent - Unary function
arcothUnary functionarcoth(x)1.0Inverse hyperbolic cotangent - Unary function
arccothUnary functionarccoth(x)1.0Inverse hyperbolic cotangent - Unary function
arcctghUnary functionarcctgh(x)1.0Inverse hyperbolic cotangent - Unary function
arcctanhUnary functionarcctanh(x)1.0Inverse hyperbolic cotangent - Unary function
asechUnary functionasech(x)1.0Inverse hyperbolic secant - Unary function
arsechUnary functionarsech(x)1.0Inverse hyperbolic secant - Unary function
arcsechUnary functionarcsech(x)1.0Inverse hyperbolic secant - Unary function
acschUnary functionacsch(x)1.0Inverse hyperbolic cosecant - Unary function
arcschUnary functionarcsch(x)1.0Inverse hyperbolic cosecant - Unary function
arccschUnary functionarccsch(x)1.0Inverse hyperbolic cosecant - Unary function
acosechUnary functionacosech(x)1.0Inverse hyperbolic cosecant - Unary function
arcosechUnary functionarcosech(x)1.0Inverse hyperbolic cosecant - Unary function
arccosechUnary functionarccosech(x)1.0Inverse hyperbolic cosecant - Unary function
SaUnary functionSa(x)1.0Sinc (normalized) - Unary function
sincUnary functionsinc(x)1.0Sinc (normalized) - Unary function
SincUnary functionSinc(x)1.0Sinc (unnormalized) - Unary function
BellUnary functionBell(n)1.0Bell number - Unary function
LucUnary functionLuc(n)1.0Lucas number - Unary function
FibUnary functionFib(n)1.0Fibonacci number - Unary function
harmUnary functionharm(n)1.0Harmonic number - Unary function
isprUnary functionispr(n)2.3Prime number test (is number a prime?) - Unary function
PiUnary functionPi(n)2.3Prime-counting π(n) - Unary function
EiUnary functionEi(x)2.3Exponential integral - Special function Ei(x) - Unary function
liUnary functionli(x)2.3Logarithmic integral - Special function li(x) - Unary function
LiUnary functionLi(x)2.3Offset logarithmic integral - Special function Li(x) - Unary function
erfUnary functionerf(x)3.0Gauss error - Special function erf(x) - Unary function
erfcUnary functionerfc(x)3.0Gauss complementary error - Special function erfc(x) - Unary function
erfInvUnary functionerfInv(x)3.0Inverse Gauss error - Special function erf⁻¹(y) - Unary function
erfcInvUnary functionerfcInv(x)3.0Inverse Gauss complementary error - Special function erfc⁻¹(x) - Unary function
ulpUnary functionulp(x)3.0Unit in The Last Place - Unary function
isNaNUnary functionisNaN(x)4.1Returns true if value is a Not-a-Number (NaN), false otherwise (true=1, false=1) - Unary function
ndig10Unary functionndig10(x)4.1Number of digits in numeral system with base 10 - Unary function
nfactUnary functionnfact(x)4.1Prime decomposition - number of distinct prime factors - Unary function
arcsecUnary functionarcsec(x)4.1Inverse trigonometric secant - Unary function
arccscUnary functionarccsc(x)4.1Inverse trigonometric cosecant - Unary function
GammaUnary functionGamma(x)4.2Gamma - Special function Γ(s) - Unary function
LambW0Unary functionLambW0(x)4.2Lambert-W, principal branch 0, also called the omega or product logarithm - Special function W₀(x) - Unary function
LambW1Unary functionLambW1(x)4.2Lambert-W, branch -1, also called the omega or product logarithm - Special function W₋₁(x) - Unary function
sgnGammaUnary functionsgnGamma(x)4.2Signum of Gamma - Special function Γ(s) - Unary function
logGammaUnary functionlogGamma(x)4.2Log Gamma - Special function lnΓ(s) - Unary function
diGammaUnary functiondiGamma(x)4.2Digamma as the logarithmic derivative of the Gamma - Special function ψ(x) - Unary function
rStudUnary functionrStud(v)5.0Random variable - Student's t-distribution - Unary function
rChi2Unary functionrChi2(k)5.0Random variable - Chi-squared distribution - Unary function

Binary Functions

KeywordTypeSyntaxSinceDescription
logBinary functionlog(a, b)1.0Logarithm - Binary function
modBinary functionmod(a, b)1.0Modulo - Binary function
CBinary functionC(n, k)1.0Binomial coefficient, number of k-combinations that can be drawn from n-elements set - Binary function
nCkBinary functionnCk(n, k)4.2Binomial coefficient, number of k-combinations that can be drawn from n-elements set - Binary function
BernBinary functionBern(m, n)1.0Bernoulli numbers - Binary function
Stirl1Binary functionStirl1(n, k)1.0Stirling numbers of the first kind - Binary function
Stirl2Binary functionStirl2(n, k)1.0Stirling numbers of the second kind - Binary function
WorpBinary functionWorp(n, k)1.0Worpitzky number - Binary function
EulerBinary functionEuler(n, k)1.0Euler number - Binary function
KDeltaBinary functionKDelta(i, j)1.0Kronecker delta - Binary function
EulerPolBinary functionEulerPol(m, x)1.0Euler polynomial - Binary function
HarmBinary functionHarm(x, n)1.0Harmonic number - Binary function
rUniBinary functionrUni(a, b)3.0Random variable - Uniform continuous distribution U(a,b) - Binary function
rUnidBinary functionrUnid(a, b)3.0Random variable - Uniform discrete distribution U{a,b} - Binary function
roundBinary functionround(x, n)3.0Half-up rounding - Binary function
rNorBinary functionrNor(mean, stdv)3.0Random variable - Normal distribution N(μ,σ) - Binary function
ndigBinary functionndig(number, base)4.1Number of digits representing the number in numeral system with given base - Binary function
dig10Binary functiondig10(num, pos)4.1Digit at position 1 ... n (left -> right) or 0 ... -(n-1) (right -> left) - base 10 numeral system - Binary function
factvalBinary functionfactval(number, factorid)4.1Prime decomposition - factor value at position between 1 ... nfact(n) - ascending order by factor value - Binary function
factexpBinary functionfactexp(number, factorid)4.1Prime decomposition - factor exponent / multiplicity at position between 1 ... nfact(n) - ascending order by factor value - Binary function
rootBinary functionroot(rootorder, number)4.1N-th order root of a number - Binary function
GammaLBinary functionGammaL(s, x)4.2Lower incomplete gamma - Special function γ(s,x) - Binary function
GammaUBinary functionGammaU(s, x)4.2Upper incomplete Gamma - Special function Γ(s,x) - Binary function
GammaPBinary functionGammaP(s, x)4.2Lower regularized P gamma - Special function P(s,x) - Binary function
GammaRegLBinary functionGammaRegL(s, x)4.2Lower regularized P gamma - Special function P(s,x) - Binary function
GammaQBinary functionGammaQ(s, x)4.2Upper regularized Q Gamma - Special function Q(s,x) - Binary function
GammaRegUBinary functionGammaRegU(s, x)4.2Upper regularized Q Gamma - Special function Q(s,x) - Binary function
nPkBinary functionnPk(n, k)4.2Number of k-permutations that can be drawn from n-elements set - Binary function
BetaBinary functionBeta(x, y)4.2The Beta, also called the Euler integral of the first kind - Special function B(x,y) - Binary function
logBetaBinary functionlogBeta(x, y)4.2The Log Beta, also called the Log Euler integral of the first kind - Special function lnB(x,y) - Binary function
pStudBinary functionpStud(x, v)5.0Student's t-distribution - Probability distribution function - Binary function
cStudBinary functioncStud(x, v)5.0Student's t-distribution - Cumulative distribution function - Binary function
qStudBinary functionqStud(p, v)5.0Student's t-distribution - Quantile function (inverse cumulative distribution function) - Binary function
pChi2Binary functionpChi2(x, k)5.0Chi-squared distribution - Probability distribution function - Binary function
cChi2Binary functioncChi2(x, k)5.0Chi-squared distribution - Cumulative distribution function - Binary function
qChi2Binary functionqChi2(p, k)5.0Chi-squared distribution - Quantile function (inverse cumulative distribution function) - Binary function
rFSnedBinary functionrFSned(d1, d2)5.1Random variable - Snedecor's F distribution (F-distribution or F-ratio, also known as Fisher–Snedecor distribution) - Binary function

3-args Functions

KeywordTypeSyntaxSinceDescription
ifTernary functionif(cond, expr-if-true, expr-if-false)1.0If - Ternary function
chiTernary functionchi(x, a, b)1.0Characteristic function for x in (a,b) - Ternary function
CHiTernary functionCHi(x, a, b)1.0Characteristic function for x in [a,b] - Ternary function
ChiTernary functionChi(x, a, b)1.0Characteristic function for x in [a,b) - Ternary function
cHiTernary functioncHi(x, a, b)1.0Characteristic function for x in (a,b] - Ternary function
pUniTernary functionpUni(x, a, b)3.0Uniform continuous distribution - Probability distribution function U(a,b) - Ternary function
cUniTernary functioncUni(a, a, b)3.0Uniform continuous distribution - Cumulative distribution function U(a,b) - Ternary function
qUniTernary functionqUni(q, a, b)3.0Uniform continuous distribution - Quantile function (inverse cumulative distribution function) U(a,b) - Ternary function
pNorTernary functionpNor(x, mean, stdv)3.0Normal distribution - Probability distribution function N(μ,σ) - Ternary function
cNorTernary functioncNor(x, mean, stdv)3.0Normal distribution - Cumulative distribution function N(μ,σ) - Ternary function
qNorTernary functionqNor(q, mean, stdv)3.0Normal distribution - Quantile function (inverse cumulative distribution function) N(μ,σ) - Ternary function
digTernary functiondig(num, pos, base)4.1Digit at position 1 ... n (left -> right) or 0 ... -(n-1) (right -> left) - numeral system with given base - Ternary function
BetaIncTernary functionBetaInc(x, a, b)4.2The incomplete Beta, also called the incomplete Euler integral of the first kind - Special function B(x,a,b) - Ternary function
BetaITernary functionBetaI(x, a, b)4.2The regularized incomplete Beta (or regularized beta), also called the regularized incomplete Euler integral of the first kind - Special function I(x,a,b) - Ternary function
BetaRegTernary functionBetaReg(x, a, b)4.2The regularized incomplete Beta (or regularized beta), also called the regularized incomplete Euler integral of the first kind - Special function I(x,a,b) - Ternary function
pFSnedTernary functionpFSned(x, d1, d2)5.1Snedecor's F distribution (F-distribution or F-ratio, also known as Fisher–Snedecor distribution) - Probability distribution function - Ternary function
cFSnedTernary functioncFSned(x, d1, d2)5.1Snedecor's F distribution (F-distribution or F-ratio, also known as Fisher–Snedecor distribution) - Cumulative distribution function - Ternary function
qFSnedTernary functionqFSned(p, d1, d2)5.1Snedecor's F distribution (F-distribution or F-ratio, also known as Fisher–Snedecor distribution) - Quantile function (inverse cumulative distribution function) - Ternary function

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

Calculus Operators / Iterated Operators

KeywordTypeSyntaxSinceDescription
Calculus operator∑(i, from, to, expr, )5.0Summation SIGMA - Iterated operator Σ - Calculus operator - Unicode math symbol
ΣCalculus operatorΣ(i, from, to, expr, )5.0Summation SIGMA - Iterated operator Σ - Calculus operator - Unicode math symbol
sumCalculus operatorsum(i, from, to, expr, )1.0Summation SIGMA - Iterated operator Σ - Calculus operator
Calculus operator∏(i, from, to, expr, )5.0Product PI - Iterated operator ∏ - Calculus operator - Unicode math symbol
Calculus operatorℿ(i, from, to, expr, )5.0Product PI - Iterated operator ∏ - Calculus operator - Unicode math symbol
ΠCalculus operatorΠ(i, from, to, expr, )5.0Product PI - Iterated operator ∏ - Calculus operator - Unicode math symbol
prodCalculus operatorprod(i, from, to, expr, )1.0Product PI - Iterated operator ∏ - Calculus operator
Calculus operator∫(expr, arg, from, to)5.0Definite integral ∫ - Calculus operator - Unicode math symbol
intCalculus operatorint(expr, arg, from, to)1.0Definite integral ∫ - Calculus operator
Calculus operator∂(expr, arg, )5.0Derivative ∂ - Calculus operator - Unicode math symbol
derCalculus operatorder(expr, arg, )1.0Derivative ∂ - Calculus operator
∂-Calculus operator∂-(expr, arg, )5.0Left derivative ∂- - Calculus operator - Unicode math symbol
der-Calculus operatorder-(expr, arg, )1.0Left derivative ∂- - Calculus operator
∂+Calculus operator∂+(expr, arg, )5.0Right derivative ∂+ - Calculus operator - Unicode math symbol
der+Calculus operatorder+(expr, arg, )1.0Right derivative ∂+ - Calculus operator
dernCalculus operatordern(expr, n, arg)1.0n-th derivative ∂ⁿ - Calculus operator
Calculus operator∆(expr, arg, )5.0Forward difference ∆ - Calculus operator - Unicode math symbol
ΔCalculus operatorΔ(expr, arg, )5.0Forward difference ∆ - Calculus operator - Unicode math symbol
diffCalculus operatordiff(expr, arg, )1.0Forward difference ∆ - Calculus operator
Calculus operator∇(expr, arg, )5.0Backward difference ∇ - Calculus operator - Unicode math symbol
difbCalculus operatordifb(expr, arg, )1.0Backward difference ∇ - Calculus operator
avgCalculus operatoravg(i, from, to, expr, )2.4Average - Iterated operator - Calculus operator
variCalculus operatorvari(i, from, to, expr, )2.4Bias-corrected sample variance - Iterated operator - Calculus operator
stdiCalculus operatorstdi(i, from, to, expr, )2.4Bias-corrected sample standard deviation - Iterated operator - Calculus operator
miniCalculus operatormini(i, from, to, expr, )2.4Minimum value - Iterated operator - Calculus operator
maxiCalculus operatormaxi(i, from, to, expr, )2.4Maximum value - Iterated operator - Calculus operator
solveCalculus operatorsolve(expr, arg, from, to)4.0Equation solving (root finding) f(x)=0 - Calculus operator

Random Variables

KeywordTypeSyntaxSinceDescription
[Uni]Random variable[Uni]3.0Uniform continuous distribution U(0,1) - Random variable
[Int]Random variable[Int]3.0Random integer - Random variable
[Int1]Random variable[Int1]3.0Uniform discrete distribution - Random integer U{-10¹,10¹} - Random variable
[Int2]Random variable[Int2]3.0Uniform discrete distribution - Random integer U{-10²,10²} - Random variable
[Int3]Random variable[Int3]3.0Uniform discrete distribution - Random integer U{-10³,10³} - Random variable
[Int4]Random variable[Int4]3.0Uniform discrete distribution - Random integer U{-10⁴,10⁴} - Random variable
[Int5]Random variable[Int5]3.0Uniform discrete distribution - Random integer U{-10⁵,10⁵} - Random variable
[Int6]Random variable[Int6]3.0Uniform discrete distribution - Random integer U{-10⁶,10⁶} - Random variable
[Int7]Random variable[Int7]3.0Uniform discrete distribution - Random integer U{-10⁷,10⁷} - Random variable
[Int8]Random variable[Int8]3.0Uniform discrete distribution - Random integer U{-10⁸,10⁸} - Random variable
[Int9]Random variable[Int9]3.0Uniform discrete distribution - Random integer U{-10⁹,10⁹} - Random variable
[nat]Random variable[nat]3.0Random natural number including 0 - Random variable
[nat1]Random variable[nat1]3.0Uniform discrete distribution - Random natural number including 0 U{0,10¹} - Random variable
[nat2]Random variable[nat2]3.0Uniform discrete distribution - Random natural number including 0 U{0,10²} - Random variable
[nat3]Random variable[nat3]3.0Uniform discrete distribution - Random natural number including 0 U{0,10³} - Random variable
[nat4]Random variable[nat4]3.0Uniform discrete distribution - Random natural number including 0 U{0,10⁴} - Random variable
[nat5]Random variable[nat5]3.0Uniform discrete distribution - Random natural number including 0 U{0,10⁵} - Random variable
[nat6]Random variable[nat6]3.0Uniform discrete distribution - Random natural number including 0 U{0,10⁶} - Random variable
[nat7]Random variable[nat7]3.0Uniform discrete distribution - Random natural number including 0 U{0,10⁷} - Random variable
[nat8]Random variable[nat8]3.0Uniform discrete distribution - Random natural number including 0 U{0,10⁸} - Random variable
[nat9]Random variable[nat9]3.0Uniform discrete distribution - Random natural number including 0 U{0,10⁹} - Random variable
[Nat]Random variable[Nat]3.0Random natural number - Random variable
[Nat1]Random variable[Nat1]3.0Uniform discrete distribution - Random natural number U{1,10¹} - Random variable
[Nat2]Random variable[Nat2]3.0Uniform discrete distribution - Random natural number U{1,10²} - Random variable
[Nat3]Random variable[Nat3]3.0Uniform discrete distribution - Random natural number U{1,10³} - Random variable
[Nat4]Random variable[Nat4]3.0Uniform discrete distribution - Random natural number U{1,10⁴} - Random variable
[Nat5]Random variable[Nat5]3.0Uniform discrete distribution - Random natural number U{1,10⁵} - Random variable
[Nat6]Random variable[Nat6]3.0Uniform discrete distribution - Random natural number U{1,10⁶} - Random variable
[Nat7]Random variable[Nat7]3.0Uniform discrete distribution - Random natural number U{1,10⁷} - Random variable
[Nat8]Random variable[Nat8]3.0Uniform discrete distribution - Random natural number U{1,10⁸} - Random variable
[Nat9]Random variable[Nat9]3.0Uniform discrete distribution - Random natural number U{1,10⁹} - Random variable
[Nor]Random variable[Nor]3.0Normal distribution N(0,1) - Random variable

Mathematical Constants

KeywordTypeSyntaxSinceDescription
πConstant valueπ5.0Pi, Archimedes' or Ludolph's number - Mathematical constant π - Constant value - Unicode math symbol
Constant value5.0Pi, Archimedes' or Ludolph's number - Mathematical constant π - Constant value - Unicode math symbol
piConstant valuepi1.0Pi, Archimedes' or Ludolph's number - Mathematical constant π - Constant value
eConstant valuee1.0Napier's or Euler's number (base of Natural logarithm) - Mathematical constant e - Constant value
Constant value5.0Napier's or Euler's number (base of Natural logarithm) - Mathematical constant e - Constant value - Unicode math symbol
Constant value5.0Napier's or Euler's number (base of Natural logarithm) - Mathematical constant e - Constant value - Unicode math symbol
[gam]Constant value[gam]1.0Euler-Mascheroni constant - Mathematical constant γ - Constant value
[phi]Constant value[phi]1.0Golden ratio - Mathematical constant φ - Constant value
[PN]Constant value[PN]1.0Plastic constant - Mathematical constant ρ - Constant value
[B*]Constant value[B*]1.0Embree-Trefethen constant - Mathematical constant β* - Constant value
[F'd]Constant value[F'd]1.0Feigenbaum delta constant - Mathematical constant δ - Constant value
[F'a]Constant value[F'a]1.0Feigenbaum alpha constant - Mathematical constant α - Constant value
[C2]Constant value[C2]1.0Twin prime constant - Mathematical constant ∏₂ - Constant value
[M1]Constant value[M1]1.0Meissel-Mertens constant - Mathematical constant M₁, B₁ - Constant value
[B2]Constant value[B2]1.0Brun's constant for twin primes - Mathematical constant B₂ - Constant value
[B4]Constant value[B4]1.0Brun's constant for prime quadruplets - Mathematical constant B₄ - Constant value
[BN'L]Constant value[BN'L]1.0de Bruijn-Newman constant - Mathematical constant Λ - Constant value
[Kat]Constant value[Kat]1.0Catalan's constant - Mathematical constant G - Constant value
[K*]Constant value[K*]1.0Landau-Ramanujan constant - Mathematical constant b - Constant value
[K.]Constant value[K.]1.0Viswanath's constant - Mathematical constant V - Constant value
[B'L]Constant value[B'L]1.0Legendre's constant - Mathematical constant B - Constant value
[RS'm]Constant value[RS'm]1.0Ramanujan-Soldner constant - Mathematical constant μ - Constant value
[EB'e]Constant value[EB'e]1.0Erdos-Borwein constant - Mathematical constant E - Constant value
[Bern]Constant value[Bern]1.0Bernstein's constant - Mathematical constant β - Constant value
[GKW'l]Constant value[GKW'l]1.0Gauss-Kuzmin-Wirsing constant - Mathematical constant λ - Constant value
[HSM's]Constant value[HSM's]1.0Hafner-Sarnak-McCurley constant - Mathematical constant σ - Constant value
[lm]Constant value[lm]1.0Golomb-Dickman constant - Mathematical constant λ - Constant value
[Cah]Constant value[Cah]1.0Cahen's constant - Mathematical constant C - Constant value
[Ll]Constant value[Ll]1.0Laplace limit constant - Mathematical constant - Constant value
[AG]Constant value[AG]1.0Alladi-Grinstead constant - Mathematical constant - Constant value
[L*]Constant value[L*]1.0Lengyel's constant - Mathematical constant Λ - Constant value
[L.]Constant value[L.]1.0Levy's constant - Mathematical constant - Constant value
[Dz3]Constant value[Dz3]1.0Apery's constant - Mathematical constant ζ(3) - Constant value
[A3n]Constant value[A3n]1.0Mills' constant - Mathematical constant A - Constant value
[Bh]Constant value[Bh]1.0Backhouse's constant - Mathematical constant B - Constant value
[Pt]Constant value[Pt]1.0Porter's constant - Mathematical constant C - Constant value
[L2]Constant value[L2]1.0Lieb's square ice constant - Mathematical constant - Constant value
[Nv]Constant value[Nv]1.0Niven's constant - Mathematical constant C - Constant value
[Ks]Constant value[Ks]1.0Sierpinski's constant - Mathematical constant K - Constant value
[Kh]Constant value[Kh]1.0Khinchin's constant - Mathematical constant K₀ - Constant value
[FR]Constant value[FR]1.0Fransen-Robinson constant - Mathematical constant F - Constant value
[La]Constant value[La]1.0Landau's constant - Mathematical constant L - Constant value
[P2]Constant value[P2]1.0Parabolic constant - Mathematical constant P - Constant value
[Om]Constant value[Om]1.0Omega constant - Mathematical constant Ω - Constant value
[MRB]Constant value[MRB]1.0MRB constant - Mathematical constant S - Constant value
[li2]Constant value[li2]2.3Logarithmic integral at point 2 - Mathematical constant li(2) - Constant value
[EG]Constant value[EG]2.3Gompertz constant - Mathematical constant δ - Constant value

Physical Constant

KeywordTypeSyntaxSinceDescription
[c]Constant value[c]4.0Light speed in vacuum - Physical constant c [m/s] (m=1, s=1) - Constant value
[G.]Constant value[G.]4.0Gravitational constant - Physical constant G (m=1, kg=1, s=1) - Constant value
[g]Constant value[g]4.0Gravitational acceleration on Earth - Physical constant g [m/s²] (m=1, s=1) - Constant value
[hP]Constant value[hP]4.0Planck constant - Physical constant h (m=1, kg=1, s=1) - Constant value
[h-]Constant value[h-]4.0Reduced Planck constant (Dirac constant) - Physical constant ħ (m=1, kg=1, s=1) - Constant value
[lP]Constant value[lP]4.0Planck length - Physical constant lᵖ [m] (m=1) - Constant value
[mP]Constant value[mP]4.0Planck mass - Physical constant mᵖ [kg] (kg=1) - Constant value
[tP]Constant value[tP]4.0Planck time - Physical constant tᵖ [s] (s=1) - Constant value

Astronomical Constant

KeywordTypeSyntaxSinceDescription
[ly]Constant value[ly]4.0Light year - Astronomical constant ly [m] (m=1) - Constant value
[au]Constant value[au]4.0Astronomical unit - Astronomical constant au, AU [m] (m=1) - Constant value
[pc]Constant value[pc]4.0Parsec - Astronomical constant pc [m] (m=1) - Constant value
[kpc]Constant value[kpc]4.0Kiloparsec - Astronomical constant kpc [m] (m=1) - Constant value
[Earth-R-eq]Constant value[Earth-R-eq]4.0Earth equatorial radius - Astronomical constant Rª⊕ [m] (m=1) - Constant value
[Earth-R-po]Constant value[Earth-R-po]4.0Earth polar radius - Astronomical constant Rᵇ⊕ [m] (m=1) - Constant value
[Earth-R]Constant value[Earth-R]4.0Earth mean radius - Astronomical constant R⊕ (m=1) - Constant value
[Earth-M]Constant value[Earth-M]4.0Earth mass - Astronomical constant M⊕ [kg] (kg=1) - Constant value
[Earth-D]Constant value[Earth-D]4.0Earth-Sun distance - Astronomical constant - Semi major axis [m] (m=1) - Constant value
[Moon-R]Constant value[Moon-R]4.0Moon mean radius - Astronomical constant [m] (m=1) - Constant value
[Moon-M]Constant value[Moon-M]4.0Moon mass - Astronomical constant [kg] (kg=1) - Constant value
[Moon-D]Constant value[Moon-D]4.0Moon-Earth distance - Astronomical constant - Semi major axis [m] (m=1) - Constant value
[Solar-R]Constant value[Solar-R]4.0Solar mean radius - Astronomical constant R☉ [m] (m=1) - Constant value
[Solar-M]Constant value[Solar-M]4.0Solar mass - Astronomical constant M☉ [kg] (kg=1) - Constant value
[Mercury-R]Constant value[Mercury-R]4.0Mercury mean radius - Astronomical constant [m] (m=1) - Constant value
[Mercury-M]Constant value[Mercury-M]4.0Mercury mass - Astronomical constant [kg] (kg=1) - Constant value
[Mercury-D]Constant value[Mercury-D]4.0Mercury-Sun distance - Astronomical constant - Semi major axis [m] (m=1) - Constant value
[Venus-R]Constant value[Venus-R]4.0Venus mean radius - Astronomical constant [m] (m=1) - Constant value
[Venus-M]Constant value[Venus-M]4.0Venus mass - Astronomical constant [kg] (kg=1) - Constant value
[Venus-D]Constant value[Venus-D]4.0Venus-Sun distance - Astronomical constant - Semi major axis [m] (m=1) - Constant value
[Mars-R]Constant value[Mars-R]4.0Mars mean radius - Astronomical constant [m] (m=1) - Constant value
[Mars-M]Constant value[Mars-M]4.0Mars mass - Astronomical constant [kg] (kg=1) - Constant value
[Mars-D]Constant value[Mars-D]4.0Mars-Sun distance - Astronomical constant - Semi major axis [m] (m=1) - Constant value
[Jupiter-R]Constant value[Jupiter-R]4.0Jupiter mean radius - Astronomical constant [m] (m=1) - Constant value
[Jupiter-M]Constant value[Jupiter-M]4.0Jupiter mass - Astronomical constant [kg] (kg=1) - Constant value
[Jupiter-D]Constant value[Jupiter-D]4.0Jupiter-Sun distance - Astronomical constant - Semi major axis [m] (m=1) - Constant value
[Saturn-R]Constant value[Saturn-R]4.0Saturn mean radius - Astronomical constant [m] (m=1) - Constant value
[Saturn-M]Constant value[Saturn-M]4.0Saturn mass - Astronomical constant [kg] (kg=1) - Constant value
[Saturn-D]Constant value[Saturn-D]4.0Saturn-Sun distance - Astronomical constant - Semi major axis [m] (m=1) - Constant value
[Uranus-R]Constant value[Uranus-R]4.0Uranus mean radius - Astronomical constant [m] (m=1) - Constant value
[Uranus-M]Constant value[Uranus-M]4.0Uranus mass - Astronomical constant [kg] (kg=1) - Constant value
[Uranus-D]Constant value[Uranus-D]4.0Uranus-Sun distance - Astronomical constant - Semi major axis [m] (m=1) - Constant value
[Neptune-R]Constant value[Neptune-R]4.0Neptune mean radius - Astronomical constant [m] (m=1) - Constant value
[Neptune-M]Constant value[Neptune-M]4.0Neptune mass - Astronomical constant [kg] (kg=1) - Constant value
[Neptune-D]Constant value[Neptune-D]4.0Neptune-Sun distance - Astronomical constant - Semi major axis [m] (m=1) - Constant value

Metric prefixes

KeywordTypeSyntaxSinceDescription
[Y]Unit[Y]4.0Septillion / Yotta - Metric prefix = 10²⁴ - Dimensionless unit
[sept]Unit[sept]4.0Septillion / Yotta - Metric prefix = 10²⁴ - Dimensionless unit
[Z]Unit[Z]4.0Sextillion / Zetta - Metric prefix = 10²¹ - Dimensionless unit
[sext]Unit[sext]4.0Sextillion / Zetta - Metric prefix = 10²¹ - Dimensionless unit
[E]Unit[E]4.0Quintillion / Exa - Metric prefix = 10¹⁸ - Dimensionless unit
[quint]Unit[quint]4.0Quintillion / Exa - Metric prefix = 10¹⁸ - Dimensionless unit
[P]Unit[P]4.0Quadrillion / Peta - Metric prefix = 10¹⁵ - Dimensionless unit
[quad]Unit[quad]4.0Quadrillion / Peta - Metric prefix = 10¹⁵ - Dimensionless unit
[T]Unit[T]4.0Trillion / Tera - Metric prefix = 10¹² - Dimensionless unit
[tril]Unit[tril]4.0Trillion / Tera - Metric prefix = 10¹² - Dimensionless unit
[G]Unit[G]4.0Billion / Giga - Metric prefix = 10⁹ - Dimensionless unit
[bil]Unit[bil]4.0Billion / Giga - Metric prefix = 10⁹ - Dimensionless unit
[M]Unit[M]4.0Million / Mega - Metric prefix = 10⁶ - Dimensionless unit
[mil]Unit[mil]4.0Million / Mega - Metric prefix = 10⁶ - Dimensionless unit
[k]Unit[k]4.0Thousand / Kilo - Metric prefix = 10³ - Dimensionless unit
[th]Unit[th]4.0Thousand / Kilo - Metric prefix = 10³ - Dimensionless unit
[hund]Unit[hund]4.0Hundred / Hecto - Metric prefix = 10² - Dimensionless unit
[hecto]Unit[hecto]4.0Hundred / Hecto - Metric prefix = 10² - Dimensionless unit
[ten]Unit[ten]4.0Ten / Deca - Metric prefix = 10 - Dimensionless unit
[deca]Unit[deca]4.0Ten / Deca - Metric prefix = 10 - Dimensionless unit
[deci]Unit[deci]4.0Tenth / Deci - Metric prefix = 10⁻¹ - Dimensionless unit
[centi]Unit[centi]4.0Hundredth / Centi - Metric prefix = 10⁻² - Dimensionless unit
[milli]Unit[milli]4.0Thousandth / Milli - Metric prefix = 10⁻³ - Dimensionless unit
[mic]Unit[mic]4.0Millionth / Micro - Metric prefix = 10⁻⁶ - Dimensionless unit
[n]Unit[n]4.0Billionth / Nano - Metric prefix = 10⁻⁹ - Dimensionless unit
[p]Unit[p]4.0Trillionth / Pico - Metric prefix = 10⁻¹² - Dimensionless unit
[f]Unit[f]4.0Quadrillionth / Femto - Metric prefix = 10⁻¹⁵ - Dimensionless unit
[a]Unit[a]4.0Quintillionth / Atoo - Metric prefix = 10⁻¹⁸ - Dimensionless unit
[z]Unit[z]4.0Sextillionth / Zepto - Metric prefix = 10⁻²¹ - Dimensionless unit
[y]Unit[y]4.0Septillionth / Yocto - Metric prefix = 10⁻²⁴ - Dimensionless unit

Units of length

KeywordTypeSyntaxSinceDescription
[m]Unit[m]4.0Meter - Unit of length [m] (m=1) - Unit
[km]Unit[km]4.0Kilometer - Unit of length [m] (m=1) - Unit
[cm]Unit[cm]4.0Centimeter - Unit of length [m] (m=1) - Unit
[mm]Unit[mm]4.0Millimeter - Unit of length [m] (m=1) - Unit
[inch]Unit[inch]4.0Inch - Unit of length [m] (m=1) - Unit
[yd]Unit[yd]4.0Yard - Unit of length [m] (m=1) - Unit
[ft]Unit[ft]4.0Feet - Unit of length [m] (m=1) - Unit
[mile]Unit[mile]4.0Mile - Unit of length [m] (m=1) - Unit
[nmi]Unit[nmi]4.0Nautical mile - Unit of length [m] (m=1) - Unit

Units of area

KeywordTypeSyntaxSinceDescription
[m2]Unit[m2]4.0Square meter - Unit of area [m²] (m=1) - Unit
[cm2]Unit[cm2]4.0Square centimeter - Unit of area [m²] (m=1) - Unit
[mm2]Unit[mm2]4.0Square millimeter - Unit of area [m²] (m=1) - Unit
[are]Unit[are]4.0Are - Unit of area [m²] (m=1) - Unit
[ha]Unit[ha]4.0Hectare - Unit of area [m²] (m=1) - Unit
[acre]Unit[acre]4.0Acre - Unit of area [m²] (m=1) - Unit
[km2]Unit[km2]4.0Square kilometer - Unit of area [m²] (m=1) - Unit

Units of volume

KeywordTypeSyntaxSinceDescription
[mm3]Unit[mm3]4.0Cubic millimeter - Unit of volume [m³] (m=1) - Unit
[cm3]Unit[cm3]4.0Cubic centimeter - Unit of volume [m³] (m=1) - Unit
[m3]Unit[m3]4.0Cubic meter - Unit of volume [m³] (m=1) - Unit
[km3]Unit[km3]4.0Cubic kilometer - Unit of volume [m³] (m=1) - Unit
[ml]Unit[ml]4.0Milliliter - Unit of volume [m³] (m=1) - Unit
[l]Unit[l]4.0Liter - Unit of volume [m³] (m=1) - Unit
[gall]Unit[gall]4.0Gallon - Unit of volume [m³] (m=1) - Unit
[pint]Unit[pint]4.0Pint - Unit of volume [m³] (m=1) - Unit

Units of time

KeywordTypeSyntaxSinceDescription
[s]Unit[s]4.0Second - Unit of time [s] (s=1) - Unit
[ms]Unit[ms]4.0Millisecond - Unit of time [s] (s=1) - Unit
[min]Unit[min]4.0Minute - Unit of time [s] (s=1) - Unit
[h]Unit[h]4.0Hour - Unit of time [s] (s=1) - Unit
[day]Unit[day]4.0Day - Unit of time [s] (s=1) - Unit
[week]Unit[week]4.0Week - Unit of time [s] (s=1) - Unit
[yearj]Unit[yearj]4.0Julian year = 365.25 days - Unit of time [s] (s=1) - Unit

Units of mass

KeywordTypeSyntaxSinceDescription
[kg]Unit[kg]4.0Kilogram - Unit of mass [kg] (kg=1) - Unit
[gr]Unit[gr]4.0Gram - Unit of mass [kg] (kg=1) - Unit
[mg]Unit[mg]4.0Milligram - Unit of mass [kg] (kg=1) - Unit
[dag]Unit[dag]4.0Decagram - Unit of mass [kg] (kg=1) - Unit
[t]Unit[t]4.0Tonne - Unit of mass [kg] (kg=1) - Unit
[oz]Unit[oz]4.0Ounce - Unit of mass [kg] (kg=1) - Unit
[lb]Unit[lb]4.0Pound - Unit of mass [kg] (kg=1) - Unit

Units of information

KeywordTypeSyntaxSinceDescription
[b]Unit[b]4.0Bit - Unit of information [bit] (bit=1) - Unit
[kb]Unit[kb]4.0Kilobit - Unit of information [bit] (bit=1) - Unit
[Mb]Unit[Mb]4.0Megabit - Unit of information [bit] (bit=1) - Unit
[Gb]Unit[Gb]4.0Gigabit - Unit of information [bit] (bit=1) - Unit
[Tb]Unit[Tb]4.0Terabit - Unit of information [bit] (bit=1) - Unit
[Pb]Unit[Pb]4.0Petabit - Unit of information [bit] (bit=1) - Unit
[Eb]Unit[Eb]4.0Exabit - Unit of information [bit] (bit=1) - Unit
[Zb]Unit[Zb]4.0Zettabit - Unit of information [bit] (bit=1) - Unit
[Yb]Unit[Yb]4.0Yottabit - Unit of information [bit] (bit=1) - Unit
[B]Unit[B]4.0Byte - Unit of information [bit] (bit=1) - Unit
[kB]Unit[kB]4.0Kilobyte - Unit of information [bit] (bit=1) - Unit
[MB]Unit[MB]4.0Megabyte - Unit of information [bit] (bit=1) - Unit
[GB]Unit[GB]4.0Gigabyte - Unit of information [bit] (bit=1) - Unit
[TB]Unit[TB]4.0Terabyte - Unit of information [bit] (bit=1) - Unit
[PB]Unit[PB]4.0Petabyte - Unit of information [bit] (bit=1) - Unit
[EB]Unit[EB]4.0Exabyte - Unit of information [bit] (bit=1) - Unit
[ZB]Unit[ZB]4.0Zettabyte - Unit of information [bit] (bit=1) - Unit
[YB]Unit[YB]4.0Yottabyte - Unit of information [bit] (bit=1) - Unit

Units of energy

KeywordTypeSyntaxSinceDescription
[J]Unit[J]4.0Joule - Unit of energy [J] (m=1, kg=1, s=1) - Unit
[eV]Unit[eV]4.0Electronovolt - Unit of energy [J] (m=1, kg=1, s=1) - Unit
[keV]Unit[keV]4.0Kiloelectronovolt - Unit of energy [J] (m=1, kg=1, s=1) - Unit
[MeV]Unit[MeV]4.0Megaelectronovolt - Unit of energy [J] (m=1, kg=1, s=1) - Unit
[GeV]Unit[GeV]4.0Gigaelectronovolt - Unit of energy [J] (m=1, kg=1, s=1) - Unit
[TeV]Unit[TeV]4.0Teraelectronovolt - Unit of energy [J] (m=1, kg=1, s=1) - Unit

Units of speed

KeywordTypeSyntaxSinceDescription
[m/s]Unit[m/s]4.0Meter per second - Unit of speed [m/s] (m=1, s=1) - Unit
[km/h]Unit[km/h]4.0Kilometer per hour - Unit of speed [m/s] (m=1, s=1) - Unit
[mi/h]Unit[mi/h]4.0Mile per hour - Unit of speed [m/s] (m=1, s=1) - Unit
[knot]Unit[knot]4.0Knot - Unit of speed [m/s] (m=1, s=1) - Unit

Units of acceleration

KeywordTypeSyntaxSinceDescription
[m/s2]Unit[m/s2]4.0Meter per square second - Unit of acceleration [m/s²] (m=1, s=1) - Unit
[km/h2]Unit[km/h2]4.0Kilometer per square hour - Unit of acceleration [m/s²] (m=1, s=1) - Unit
[mi/h2]Unit[mi/h2]4.0Mile per square hour - Unit of acceleration [m/s²] (m=1, s=1) - Unit

Units of angle

KeywordTypeSyntaxSinceDescription
[rad]Unit[rad]4.0Radian - Unit of angle [rad] (rad=1) - Unit
[deg]Unit[deg]4.0Degree of arc - Unit of angle [rad] (rad=1) - Unit
[']Unit[']4.0Minute of arc - Unit of angle [rad] (rad=1) - Unit
['']Unit['']4.0Second of arc - Unit of angle [rad] (rad=1) - Unit

Other parser symbols

KeywordTypeSyntaxSinceDescription
(Parser symbol( ... )1.0Left parentheses - Parser symbol
)Parser symbol( ... )1.0Right parentheses - Parser symbol
,Parser symbol(a1, ... ,an)1.0Comma (function parameters) - Parser symbol
;Parser symbol(a1; ... ;an)1.0Semicolon (function parameters) - Parser symbol
Parser symbol4.2Blank (whitespace) character - Parser symbol

Did you find mXparser useful? If yes:

INFIMA

Best regards, Mariusz Gromada

FAQs

Package last updated on 19 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc