Confirming Non-Commercial / Commercial Use

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

The tutorial consists of more than 200 live examples from 50 sections given separately for JAVA, C# and C++. 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! 🙂

Tutorial Math Collection API spec Download

Below is the code for JAVA, C# (the code for C# is almost identical) and C++. To copy the code, double-click inside the frame.

Any form of redistribution requires confirmation and signature of the NON-COMMERCIAL USE / COMMERCIAL USE by successfully calling the method
License.iConfirmNonCommercialUse(…)
License.iConfirmCommercialUse(…)
The method call takes place only internally for logging purposes and there is no connection with other external services and no data is sent or collected. The lack of a method call (or its successful call) does not affect the operation of the PRODUCT in any way. Please see the API documentation.

Case 1: Confirming Non-Commercial Use

Java/C# code
// JAVA: import org.mariuszgromada.math.mxparser.*;
// C#: using org.mariuszgromada.math.mxparser;
// ...

License.iConfirmNonCommercialUse("John Doe")
C++ code
#include "org/mariuszgromada/math/mxparser.hpp"
// ...

License::iConfirmNonCommercialUse("John Doe")

Case 2: Confirming Non-Commercial Use with optional verification

Java/C# code
// JAVA: import org.mariuszgromada.math.mxparser.*;
// C#: using org.mariuszgromada.math.mxparser;
// ...

/* Non-Commercial Use Confirmation */
boolean isCallSuccessful = License.iConfirmNonCommercialUse("John Doe");

/* Verification if use type has been already confirmed */
boolean isConfirmed = License.checkIfUseTypeConfirmed();

/* Checking use type confirmation message */
String message = License.getUseTypeConfirmationMessage();

/* ----------- */
mXparser.consolePrintln("isCallSuccessful = " + isCallSuccessful);
mXparser.consolePrintln("isConfirmed = " + isConfirmed);
mXparser.consolePrintln("message = " + message);
C++ code
#include "org/mariuszgromada/math/mxparser.hpp"
// ...

/* Non-Commercial Use Confirmation */
bool isCallSuccessful = License::iConfirmNonCommercialUse("John Doe");

/* Verification if use type has been already confirmed */
bool isConfirmed = License::checkIfUseTypeConfirmed();

/* Checking use type confirmation message */
StringPtr message = License::getUseTypeConfirmationMessage();

/* ----------- */
mXparser_consolePrintln("isCallSuccessful = " + isCallSuccessful);
mXparser_consolePrintln("isConfirmed = " + isConfirmed);
mXparser_consolePrintln("message = " + message);
Code result
[mXparser-v.5.0.4] isCallSuccessful = true
[mXparser-v.5.0.4] isConfirmed = true
[mXparser-v.5.0.4] message = You "John Doe" have confirmed the non-commercial use according to the License.geTermsOfAgreement(). Thank you.

Case 3: Confirming Commercial Use

Java/C# code
// JAVA: import org.mariuszgromada.math.mxparser.*;
// C#: using org.mariuszgromada.math.mxparser;
// ...

License.iConfirmCommercialUse("John Doe");
C++ code
#include "org/mariuszgromada/math/mxparser.hpp"
// ...

License::iConfirmCommercialUse("John Doe");

Case 4: Confirming Commercial Use with optional verification

Java/C# code
// JAVA: import org.mariuszgromada.math.mxparser.*;
// C#: using org.mariuszgromada.math.mxparser;
// ...

/* Commercial Use Confirmation */
boolean isCallSuccessful = License.iConfirmCommercialUse("John Doe");

/* Verification if use type has been already confirmed */
boolean isConfirmed = License.checkIfUseTypeConfirmed();

/* Checking use type confirmation message */
String message = License.getUseTypeConfirmationMessage();

/* ----------- */
mXparser.consolePrintln("isCallSuccessful = " + isCallSuccessful);
mXparser.consolePrintln("isConfirmed = " + isConfirmed);
mXparser.consolePrintln("message = " + message);
C++ code
#include "org/mariuszgromada/math/mxparser.hpp"
// ...

/* Commercial Use Confirmation */
bool isCallSuccessful = License::iConfirmCommercialUse("John Doe");

/* Verification if use type has been already confirmed */
bool isConfirmed = License::checkIfUseTypeConfirmed();

/* Checking use type confirmation message */
StringPtr message = License::getUseTypeConfirmationMessage();

/* ----------- */
mXparser_consolePrintln("isCallSuccessful = " + isCallSuccessful);
mXparser_consolePrintln("isConfirmed = " + isConfirmed);
mXparser_consolePrintln("message = " + message);
Code result
[mXparser-v.5.0.4] isCallSuccessful = true
[mXparser-v.5.0.4] isConfirmed = true
[mXparser-v.5.0.4] message = You "John Doe" have confirmed the commercial use according to the License.geTermsOfAgreement(). Thank you.
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