TO SUPPORT MY WORK, ORDER A COMMERCIAL LICENSE
THANK YOU!
Tutorial Math Collection API spec Download
mXparser “Hello World!” JAVA tutorial using Eclipse Mars 1.
package mxparser.helloworld; import org.mariuszgromada.math.mxparser.*; public class HelloWorld { public static void main(String[] args) { Expression eh = new Expression("5^2 * 7^3 * 11^1 * 67^1 * 49201^1"); Expression ew = new Expression("71^1 * 218549^1 * 6195547^1"); String h = mXparser.numberToAsciiString( eh.calculate() ); String w = mXparser.numberToAsciiString( ew.calculate() ); mXparser.consolePrintln(h + " " + w); } }
Step 1.1 Create new project.
Step 1.2. Select “Java Project” on the “Wizards” list.
Step 1.3. Input “Project name” and browse “Project location”.
Step 1.4. Reference “mxparser.jar” library.
Step 1.5. Pickup location of the “mxparser.jar” file.
Step 1.6. Click “Finish” and your project is ready to code!
Step 2.1. Create first class in the created project.
Step 2.2. Set the class type / name and package name.
Step 2.3. This is a code draft of your class.
Step 2.4. Import “org.mariuszgromada.math.mxparser” package – you should see code completion hints while typing.
Step 2.5. Write the full “Hello World!” code. Run the project and check whether “Hello World!” text was displayed!
Step 4. Enjoy using mXparser 🙂
Nuget – Package Manager (C#, F#, Visual Basic, …)
Install-Package
MathParser.org-mXparser
-Version
6.1.0
dotnet add package
MathParser.org-mXparser
--version
6.1.0
<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