mXparser – Hello World – F#

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

Tutorial Math Collection API spec Download

mXparser “Hello World!” F# tutorial using Visual Studio 2015.

open org.mariuszgromada.math.mxparser

[<EntryPoint&gt>]
let main argv =
   eh = Expression("5^2 * 7^3 * 11^1 * 67^1 * 49201^1")
   let ew = Expression("71^1 * 218549^1 * 6195547^1")
   let h = mXparser.numberToAsciiString( eh.calculate() )
   let w = mXparser.numberToAsciiString( ew.calculate() )
   mXparser.consolePrintln(h + " " + w);
   0 // return an integer exit code

Step 1.1 Create new project.

01 - mXparser - Hello World - F# - Visual Studio 2015

Step 1.2. Select “Visual F#” and “Console Application”. Input “Project name” and browse “Project location”.

02 - mXparser - Hello World - F# - Visual Studio 2015

Step 2.1. Reference “mxparser.dll” library.

03 - mXparser - Hello World - F# - Visual Studio 2015

Step 2.2. Pickup location of the  “mxparser.dll” file. Click “Add” + “Ok” and your project is ready to code!

04 - mXparser - Hello World - F# - Visual Studio 2015

Step 3.1. This is a code draft of your function.

05 - mXparser - Hello World - F# - Visual Studio 2015

Step 3.2. Import “org.mariuszgromada.math.mxparser” package – you should see code completion hints while typing.

06 - mXparser - Hello World - F# - Visual Studio 2015

Step 3.3. Write the full “Hello World!” code.

07 - mXparser - Hello World - F# - Visual Studio 2015

Step 4.1. Run the project.

08 - mXparser - Hello World - F# - Visual Studio 2015

Step 4.2. Check whether “Hello World!” text was displayed!

09 - mXparser - Hello World - F# - Visual Studio 2015

Step 5. Enjoy using mXparser 🙂

Nuget – Package Manager

Install-Package MathParser.org-mXparser -Version 6.0.0

Nuget – .NET CLI

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

Nuget – Package Reference

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

Maven – Dependency

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

Maven – Gradle

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

CMake – Dependency / FetchContent

include(FetchContent)
FetchContent_Declare(
MathParserOrgMxParser
GIT_REPOSITORY
https://github.com/mariuszgromada/MathParser.org-mXparser.git
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.0.0 Picon: .NET bin onlyDownload latest release – v.6.0.0 Picon: JAVA bin onlyDownload latest release – v.6.0.0 Picon: 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