mXparser – Hello World – C#

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

Tutorial Math Collection API spec Download

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


using System;
using org.mariuszgromada.math.mxparser;

namespace mxparser.helloworld
{
   class Program
   {
      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.

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

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

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

Step 2.1. Reference “mxparser.dll” library.

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

Step 2.2. Pickup location of the  “mxparser.dll” file.

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

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

Step 2.3. Click “Add” and your project is ready to code!

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

Step 3.1. This is a code draft of your class. Import “org.mariuszgromada.math.mxparser” package – you should see code completion hints while typing.

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

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

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

Step 4.1. Run the project.

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

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

10 - mXparser - Hello World - C# - Visual Studio 2015

Step 5. Enjoy using mXparser 🙂

Nuget
Install-Package MathParser.org-mXparser -Version 5.0.2
Maven
<dependency>
<groupid>org.mariuszgromada.math</groupid>
<artifactid>MathParser.org-mXparser</artifactid>
<version>5.0.2</version>
</dependency>
Gradle
implementation 'org.mariuszgromada.math:MathParser.org-mXparser:5.0.2'
Gradle (Kotlin)
implementation("org.mariuszgromada.math:MathParser.org-mXparser:5.0.2")
GitHub
git clone https://github.com/mariuszgromada/MathParser.org-mXparser
OTHER DOWNLOAD OPTIONS

Download latest release – v.5.0.2 Leonis: bin + docDownload latest release – v.5.0.2 Leonis: bin only, includes separate binaries for various .NET platforms and Java versions
Source code .zipSource code .tar.gz
View on GitHubMathSpace.pl

DONATION
Did you find the software useful?
Please consider donation 🙂
DONATE