Extensive list of settings

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

The tutorial consists of more than 180 live examples from 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! 🙂

Tutorial Math Collection API spec Download

Below is the code for JAVA, the code for C# is almost identical.

mXparser provides extensive configuration options. The vast majority of settings can be understood by analyzing the method name – however, I encourage you to read the API documentation and tutorials.

1. Degrees / Radians Mode

/* Global Settings - Reach: All Defined Elements */
boolean mXparser.checkIfDegreesMode();
void mXparser.setDegreesMode();
boolean mXparser.checkIfRadiansMode();
void mXparser.setRadiansMode();

2. Attempt To Fix Expression String Mode

/* Global Settings - Reach: All Defined Elements */
boolean mXparser.checkIfAttemptToFixExpStrMode();
void mXparser.enableAttemptToFixExpStrMode();
void mXparser.disableAttemptToFixExpStrMode();

/* Local Settings - Reach: Given Expression e */
boolean e.checkIfAttemptToFixExpStrMode();
void e.enableAttemptToFixExpStrMode();
void e.disableAttemptToFixExpStrMode();

3. Primes Cache

/* Global Settings - Reach: All Defined Elements */
void mXparser.initPrimesCache();
void mXparser.initPrimesCache​(int mximumNumberInCache);
void mXparser.initPrimesCache​(PrimesCache primesCache);
boolean mXparser.isInitPrimesCacheSuccessful();
int mXparser.getMaxNumInPrimesCache();
void mXparser.setNoPrimesCache();

4. Epsilon Comparison / Exact Comparison Mode

/* Global Settings - Reach: All Defined Elements */
boolean mXparser.checkIfEpsilonMode();
void mXparser.setEpsilonComparison();
double mXparser.getEpsilon();
void mXparser.setEpsilon​(double epsilon);
void mXparser.setDefaultEpsilon();
boolean mXparser.checkIfExactMode();
void mXparser.setExactComparison();

5. Canonical Rounding Mode

/* Global Settings - Reach: All Defined Elements */
boolean mXparser.checkIfCanonicalRounding();
void mXparser.enableCanonicalRounding();
void mXparser.disableCanonicalRounding();
void mXparser.setCanonicalRounding​(boolean canonicalRoundingState);

6. ULP (Unit In The Last Place) Rounding Mode

/* Global Settings - Reach: All Defined Elements */
boolean mXparser.checkIfUlpRounding();
void mXparser.enableUlpRounding();
void mXparser.disableUlpRounding();
void mXparser.setUlpRounding​(boolean ulpRoundingState);

7. Almost Integers Rounding Mode

/* Global Settings - Reach: All Defined Elements */
boolean mXparser.checkIfAlmostIntRounding();
void mXparser.enableAlmostIntRounding();
void mXparser.disableAlmostIntRounding();
void mXparser.setAlmostIntRounding​(boolean almostIntRoundingState);

8. Implied Multiplication Mode

/* Global Settings - Reach: All Defined Elements */
boolean mXparser.checkIfImpliedMultiplicationMode();
void mXparser.enableImpliedMultiplicationMode();
void mXparser.disableImpliedMultiplicationMode();

/* Local Settings - Reach: Given Expression e */
boolean e.checkIfImpliedMultiplicationMode();
void e.enableImpliedMultiplicationMode();
void e.disableImpliedMultiplicationMode();

9. Unicode Builtin Key Words Mode

/* Global Settings - Reach: All Defined Elements */
boolean mXparser.checkIfUnicodeBuiltinKeyWordsMode();
void mXparser.enableUnicodeBuiltinKeyWordsMode();
void mXparser.disableUnicodeBuiltinKeyWordsMode();

/* Local Settings - Reach: Given Expression e */
boolean e.checkIfUnicodeBuiltinKeyWordsMode();
void e.enableUnicodeBuiltinKeyWordsMode();
void e.disableUnicodeBuiltinKeyWordsMode();

10. Verbose / Silent Mode

/* Local Settings - Reach: Given Expression e */
void e.setVerboseMode();
void e.setSilentMode();

11. Override Builtin Tokens Mode

/* Global Settings - Reach: All Defined Elements */
boolean mXparser.checkIfsetToOverrideBuiltinTokens();
void mXparser.setToOverrideBuiltinTokens();
void mXparser.setNotToOverrideBuiltinTokens();

12. Modify Builtin Tokens Mode

/* Global Settings - Reach: All Defined Elements */
void mXparser.modifyBuiltinToken​(String currentToken, String newToken);
void mXparser.modifyBuiltinToken​(String currentToken, String newToken, String newTokenDescription);
String[][] mXparser.getBuiltinTokensToModify();
void mXparser.unmodifyBuiltinTokens​(String... currentOrNewTokens);
void mXparser.unmodifyAllBuiltinTokens();

13. Remove Builtin Tokens Mode

/* Global Settings - Reach: All Defined Elements */
void mXparser.removeBuiltinTokens​(String... tokens);
String[] mXparser.getBuiltinTokensToRemove();
void mXparser.unremoveBuiltinTokens​(String... tokens);
void mXparser.unremoveAllBuiltinTokens();

14. Current Calculation Cancellation

/* Global Settings - Reach: All Defined Elements */
void mXparser.cancelCurrentCalculation();
boolean mXparser.isCurrentCalculationCancelled();
void mXparser.resetCancelCurrentCalculationFlag();

15. Setting Console Prefix

/* Global Settings - Reach: All Defined Elements */
void mXparser.setConsolePrefix​(String consolePrefix);
void mXparser.setDefaultConsolePrefix();

16. Reaching Console Output String

/* Global Settings - Reach: All Defined Elements */
String mXparser.getConsoleOutput();
void mXparser.resetConsoleOutput();
void mXparser.setConsoleOutputPrefix​(String consoleOutputPrefix);
void mXparser.setDefaultConsoleOutputPrefix();

17. Maximum Allowed Recursion Depth

/* Global Settings - Reach: All Defined Elements */
int mXparser.getMaxAllowedRecursionDepth();
void mXparser.setMaxAllowedRecursionDepth​(int maxAllowedRecursionDepth);

18. Double to Fraction Conversion

/* Global Settings - Reach: All Defined Elements */
long mXparser.getToFractionInitSearchSize();
void mXparser.setToFractionInitSearchSize​(long n);
double[] mXparser.toFraction​(double value);
String mXparser.toFractionString​(double value);
double[] mXparser.toMixedFraction​(double value);
String mXparser.toMixedFractionString​(double value);

19. Random Generator Selection

/* Global Settings - Reach: All Defined Elements */
void mXparser.setRandomGenerator​(Random randomGenerator);

20. Maximum Threads Number

/* Global Settings - Reach: All Defined Elements */
int mXparser.getThreadsNumber();
void mXparser.setThreadsNumber​(int threadsNumber);
void mXparser.setDefaultThreadsNumber();

21. Default Settings

/* Global Settings - Reach: All Defined Elements */
void mXparser.setDefaultOptions();
Nuget – Package Manager

Install-Package MathParser.org-mXparser -Version 5.1.0

Nuget – .NET CLI

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

Nuget – Package Reference

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

Maven – Dependency

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

Maven – Gradle

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

Maven – Gradle (Kotlin)

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

GitHub

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

OTHER DOWNLOAD OPTIONS

Download latest release – v.5.1.0 Libris: .NET bin onlyDownload latest release – v.5.1.0 Libris: JAVA bin onlyDownload latest release – v.5.1.0 Libris: 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