MathParser.org-mXparser 5.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package MathParser.org-mXparser --version 5.0.4
NuGet\Install-Package MathParser.org-mXparser -Version 5.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MathParser.org-mXparser" Version="5.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MathParser.org-mXparser --version 5.0.4
#r "nuget: MathParser.org-mXparser, 5.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MathParser.org-mXparser as a Cake Addin
#addin nuget:?package=MathParser.org-mXparser&version=5.0.4

// Install MathParser.org-mXparser as a Cake Tool
#tool nuget:?package=MathParser.org-mXparser&version=5.0.4

Latest release

v.5.0.4 (2022-05-22): Leonis - a major release: Implied Multiplication, Unicode Math Symbols, Additional Probability Distributions, Calculation Steps Register

Tutorial

The tutorial consists of c.a. 140 live examples from over 30 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

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

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

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

>>> 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?

  • please consider donation
  • purchase the commercial license from here or from here

Android App that is powered by MathParser.org-mXparser

Other websites

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 is compatible.  netcoreapp1.1 is compatible.  netcoreapp2.0 is compatible.  netcoreapp2.1 is compatible.  netcoreapp2.2 is compatible.  netcoreapp3.0 is compatible.  netcoreapp3.1 is compatible. 
.NET Standard netstandard1.0 is compatible.  netstandard1.1 is compatible.  netstandard1.2 is compatible.  netstandard1.3 is compatible.  netstandard1.4 is compatible.  netstandard1.5 is compatible.  netstandard1.6 is compatible.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 is compatible.  net452 is compatible.  net46 is compatible.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Windows Phone wp8 was computed.  wp81 was computed.  wpa81 was computed. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 1.0

    • No dependencies.
  • .NETCoreApp 1.1

    • No dependencies.
  • .NETCoreApp 2.0

    • No dependencies.
  • .NETCoreApp 2.1

    • No dependencies.
  • .NETCoreApp 2.2

    • No dependencies.
  • .NETCoreApp 3.0

    • No dependencies.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETFramework 4.5.1

    • No dependencies.
  • .NETFramework 4.5.2

    • No dependencies.
  • .NETFramework 4.6

    • No dependencies.
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETFramework 4.7

    • No dependencies.
  • .NETFramework 4.7.1

    • No dependencies.
  • .NETFramework 4.7.2

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 1.0

    • No dependencies.
  • .NETStandard 1.1

    • No dependencies.
  • .NETStandard 1.2

    • No dependencies.
  • .NETStandard 1.3

    • No dependencies.
  • .NETStandard 1.4

    • No dependencies.
  • .NETStandard 1.5

    • No dependencies.
  • .NETStandard 1.6

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • Portable Class Library (.NETFramework 4.5, Windows 8.0, WindowsPhoneApp 8.1)

    • No dependencies.

NuGet packages (9)

Showing the top 5 NuGet packages that depend on MathParser.org-mXparser:

Package Downloads
FrontLookCoreLibraryAssembly

This package adds an asp.net core class library!

Meshmakers.Octo.Sdk.Common

General classes for communication of tools, sockets and plugs of Octo Mesh

LightConversion.Topas4

Library to control optical parametric amplifiers by Light Conversion.

Quirco.OpenXmlTemplater

Package Description

GenICam

Package Description

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on MathParser.org-mXparser:

Repository Stars
ArduPilot/MissionPlanner
Mission Planner Ground Control Station for ArduPilot (c# .net)
MUnique/OpenMU
This project aims to create an easy to use, extendable and customizable server for a MMORPG called "MU Online".
MatterHackers/MatterControl
3D printing software for Windows, Mac and Linux
VolcanicArts/VRCOSC
Modular OSC program creator, toolkit, and router made for VRChat. Show your heartrate, time, hardware stats, speech to text, control Spotify, and more! Includes drag-and-drop prefabs for your avatar.
Kaioru/Edelstein
A v.95.1 Mushroom game server emulator written in C# .NET
Version Downloads Last updated
5.2.1 173,472 2/7/2023
5.2.0 17,647 1/28/2023
5.1.0 79,282 11/13/2022
5.0.7 99,742 8/21/2022
5.0.6 50,457 5/31/2022
5.0.5 4,919 5/29/2022
5.0.4 4,721 5/22/2022
5.0.3 3,949 5/21/2022
5.0.2 45,460 4/18/2022
5.0.1 6,884 4/10/2022
5.0.0 3,597 4/10/2022
4.4.3 40,180 5/28/2022
4.3.4 27,232 5/27/2022

v.5.0 Leonis: Implied Multiplication, Unicode Math Symbols, Additional Probability Distributions, Calculation Steps Register