magicfile icon Magic file website -

Source and code of polynomial math parser in VB.NET

سورس-و-کد تجزیه-کننده-ریاضی-چند-جمله-ای-در-VB.NET
Short description and download link
Today, in this post, we have prepared for you, dear users of the website, the magic file of a source and the code of the polynomial mathematical parser in VB.NET ready for download.


List of similar files

Short link:
Full description of the file

Source and code for polynomial math parser in VB.NET

This code contains five classes to evaluate a string of a real, complex, or polynomial mathematical expression, perhaps reducing the expression to a real or complex number or an equivalent polynomial. A mathematical expression may or may not contain variables.

Sample runtime images

Source and code of polynomial math parser in VB.NET


In many situations, string may contain a mathematical expression, such as "1+2*5", "(3+i)(3-i)", or "(z^2*w+4z^3w-w^ 2-4z*w^2)/(w+4z*w)" and there is a need to calculate and calculate the result. Maybe we need to calculate the result for the values ​​of different variables and the result can be another polynomial. In these cases, the polynomial parser provided here may help.


The classes here are a small - but improved - part of my free, downloadable CAS calculator. One of the goals is that these classes do not rely on other "external" classes, as is the case with the CAS calculator.

Seven classes

  • The "Msg10" class contains only a few messages to handle possible errors.
  • The G10 class contains global members such as Regex patterns.
  • "Rational" class gives more precision in operations.
  • The "Complex" class performs complex math.
  • The "Polynomial" class handles polynomials.
  • The "Roots" class finds the roots and factors of polynomials.

"parsePolynomial" class is responsible for dividing the input string into symbols and calling based on it to Roots or Polynomial class of Msg10s. Roots depends on Polynomial class which in turn depends on Complex and Complex on Rational. The "tokenization" work is done by a Regex pattern.

Click on the link below to get the source and code of the polynomial math parser in VB.NET

Click here to download

Files that you may need

User comments

کد امنیتی

Comment sent by Ki Khosro - 2022/12/09 12:46:57 am
Hello I downloaded it, you are really warm and thank you, you are really unique
The answer of the magic file support
Hello please
Comment sent by Mehrdad - 2022/12/18 5:53:56 pm
Thank you, don't hurt your hand, it hurt me
The answer of the magic file support
Hello please
Comment sent by Shabahang - 2022/12/04 3:54:09 am
Hello and thank you very much for publishing your knowledge for free. It was a good course with practical content.
The answer of the magic file support
Hello Your honor

List of website special files

Download software to change the source language and code of Visual Studio (design elements of form design)

Download automatic translation software for po, pot files in full for all languages, including Persian

The best notification service push script notification management and build site notification push

Download software to convert text file to vcf (mobile contact)