A comprehensive mathematics library in VB.NET providing advanced operations such as linear algebra, calculus, and statistics to support your development needs.
- Matrix transpose
- Determinant calculation (2x2)
- Basic matrix manipulation
- Numerical derivatives
- Numerical integration (rectangular method)
- Basic mathematical functions
- Mean calculation
- Variance calculation
- Standard deviation calculation
- Random matrix generator
- Basic math functions (factorial, power)
Mathematics-VB/
├── src/
│ ├── Core/
│ │ └── MathBase.vb
│ ├── Algebra/
│ │ └── Matrix.vb
│ ├── Calculus/
│ │ └── Derivative.vb
│ └── Statistics/
│ └── BasicStats.vb
├── Tests/
│ └── TestRunner.vb
└── Utils/
└── MathHelper.vb
git clone https://github.com/sazumivicky/Mathematics-VB.git
- Open the solution in Visual Studio.
- Build and run the project.
' Matrix Operations
Dim matrix As New Matrix(2, 2)
Dim transposed = matrix.Transpose()
' Calculus
Dim deriv As New Derivative()
Dim result = deriv.NumericalDerivative(Function(x) x * x, 2.0)
' Statistics
Dim stats As New BasicStats()
Dim data = New Double() {1, 2, 3, 4, 5}
Dim mean = stats.Mean(data)
Dim stdDev = stats.StandardDeviation(data)
- Create a new matrix:
Dim matrix As New Matrix(rows, cols)
- Calculate determinant (2x2):
Dim det = matrix.Determinant()
- Transpose a matrix:
Dim transposed = matrix.Transpose()
- Calculate numerical derivative:
Dim deriv As New Derivative() Dim result = deriv.NumericalDerivative(Function(x) x * x, 2.0)
- Perform simple integration:
Dim integral = deriv.SimpleIntegration(Function(x) x * x, 0, 1)
- Basic statistical operations:
Dim stats As New BasicStats() Dim mean = stats.Mean(data) Dim variance = stats.Variance(data) Dim stdDev = stats.StandardDeviation(data)
- Visual Basic .NET
- .NET Framework
- Visual Studio IDE
- .NET Framework 4.5 or higher
- Visual Studio 2017 or later
We welcome contributions! Follow these steps to contribute:
- Fork this repository.
- Create a new feature branch (
git checkout -b feature/new-feature
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature/new-feature
). - Open a Pull Request.
Distributed under the MIT License. See the LICENSE
file for more details.
Sazumi Viki
✉️ Email: root@sazumi.moe
🔗 Project Link: Mathematics-VB on GitHub