CypherCrescent SepalSolver

SepalSolver is a powerful, in-house computational mathematics library developed by CypherCrescent. It provides robust capabilities for numerical analysis, symbolic expression evaluation, linear optimisation, and data visualisation. The library is designed to support scientific computing, research-driven modelling, and integration into engineering applications.
SepalSolver serves as the core solver engine for several internal tools and workflows, making it highly extensible and tailored for advanced users and researchers.
โจ Features
- ๐ Matrix Algebra: Support for common linear algebra operations
- โ๏ธ Optimisation: Solve linear programming, mixed interger program, quadratic programming and curve fitting problems
- ๐ Special Functions: Perform special function computation for both real and complex arguments
- ๐งฎ Ordinary Differential Equations: Solves systems of ordinary differential equations up to index 2 differential algebraic systems
- ๐งช Test-Ready: Built with test-driven development practices
๐ฆ Installation
You can install SepalSolver from NuGet.org using either the .NET CLI or NuGet Package Manager:
.NET CLI
dotnet add package SepalSolver
NuGet Package Manager
Install-Package SepalSolver
๐ Getting Started
Here's a simple example to evaluate an expression:
using static SepalSolver.Math;
static double fun(double x) => Pow(x, 3) - 2 * x - 5;
double x0 = 2;
double root = Fzero(fun, x0);
Console.WriteLine($"Result: {root}");
๐ง Optimisation Example
using SepalSolver;
using static SepalSolver.Math;
Func<ColVec, double> fun = x => 1 + x[0] / (1 + x[1]) - 3 * x[0] * x[1] + x[1] * (1 + x[0]);
ColVec lb = new double[] { 0, 0 }, ub = new double[] { 1, 2 }, x0 = (lb + ub) / 2;
var result = Fmincon(fun, x0, null, null, lb, ub);
Console.WriteLine(result);
๐ Plotting Example (via PlotLib)
using SepalSolver;
using static SepalSolver.Math;
using static SepalSolver.PlotLib;
ColVec x = Linspace(0, 10);
Matrix y = Enumerable.Range(0, 10).Select(i => BesselJ(i, x)).ToList();
Plot(x, y);
Xlabel("x-axis");
Ylabel("y-axis");
Title("Bessel function J");

๐ Project Structure
SepalSolver/ | ๐ฆ Main NuGet library project with source code and packaging config |
SepalSolver.PlotLib/ | ๐ Plotting support library (now .NET Standard) |
SepalSolver.Test/ | ๐งช Unit tests and example usage |
EigenPack/ | โ Internal or external numerical algorithms and helpers |
.github/workflows/ | โ๏ธ GitHub Actions workflows for CI/CD and NuGet publishing |
README.md | ๐ Root-level documentation for repository overview |
๐งโ๐ป Maintainers
SepalSolver is developed and maintained by the Digital Services Team at CypherCrescent.
For contributions or feedback, open an issue or pull request via GitHub.
๐ Repository
GitHub: https://github.com/cyphercrescent/sepalsolver
๐ License
ยฉ CypherCrescent Limited. All rights reserved.