Library for numerical analysis, designed to help solve a variety of mathematical and computational problems. Additionally, the repository includes a folder named ProjectsToTestLibrary, which contains example projects demonstrating how to use the library.
-
Download the latest release from the Releases page. Click on
numerical-methods.dll
, or download it directly here. -
In Visual Studio, right-click on the References section of your project, select Add Reference..., and click the Browse... button in the lower-right corner of the window. Choose the downloaded
numerical-methods.dll
file.- Path: References (right-click) ➔ Add Reference... ➔ Browse... ➔ Choose
numerical-methods.dll
.
- Path: References (right-click) ➔ Add Reference... ➔ Browse... ➔ Choose
-
Include the following line in your C# project:
using NumericalMethods;
Library has methods that help solving:
- Linear Equation Systems
- Cramers rule
- Gauss Method
- Jordan Gauss Method
- Inversion Method
- Seidel Method
- Simple Iteration Method
- Data tables
- LU-decomposition
- Matrix functions and operations
- Non-linear equations roots (using dichotomy)
- Numeric Serius Sum
- Tangent
For example let's test "Data table
" with the project to test a library located below:
NumericalMethods\ProjectsToTestLibrary\DataTableTest\DataTableTest.cs
using System.IO;
using DataTable = NumericalMethods.DataTable;
using FilesController = NumericalMethods.FilesController;
using GraphicsForm = NumericalMethods.GraphicsForm;
namespace DataTableTest
{
class DataTableTest
{
static void Main(string[] args)
{
using (StreamWriter writer = FilesController.WriteResultToFile("DataTableResult.txt"))
{
DataTable table = new DataTable("TestTable.txt", "Data Table Graphic");
string txt = $"\r\n\r\n\r\n Read lines: {table.Length,0}";
txt += table.ToPrint(" Processing file *.txt");
writer.WriteLine(txt);
GraphicsForm.SingleGraphic(table, widthPointsCount: 300, heightPointsCount: 500);
table.ToTxtFile("DataTableAdditionalResult.txt", " New results form");
}
}
}
}
Running this example generates files DataTableResult.txt
and DataTableAdditionalResult.txt
, in the same folder as the .exe
file.
DataTableResult.txt
DataTableResult.txt
Read lines: 200 Processing file *.txt
Table Data Table Graphic in file TestTable.txt:
x = [ 4.300000000000 : 8.600000000000 ] x_Reg = 4.300000000000
Min ( 4.710552763819, 0.467901053830 )
Max ( 7.908542713568, 6.751486519887 ) f_Reg = 6.283585466057
Zeros Table of Data Table Graphic is empty!
DataTableAdditionalResult.txt (being the same as it should)
New results form
Function table Data Table Graphic :
x = [ 4.300000000000 : 8.600000000000 ] x_Reg = 4.300000000000
Min ( 4.710552763819, 0.467901053830 )
Max ( 7.908542713568, 6.751486519887 ) f_Reg = 6.283585466057
Zeros Table of Data Table Graphic is empty!
Running the app will also open a window displaying the graphic representation picture of the .txt
-file data.