EMDD.KtExpressions 1.0.0

.NET 5.0
Install-Package EMDD.KtExpressions -Version 1.0.0
dotnet add package EMDD.KtExpressions --version 1.0.0
<PackageReference Include="EMDD.KtExpressions" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EMDD.KtExpressions --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EMDD.KtExpressions, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EMDD.KtExpressions as a Cake Addin
#addin nuget:?package=EMDD.KtExpressions&version=1.0.0

// Install EMDD.KtExpressions as a Cake Tool
#tool nuget:?package=EMDD.KtExpressions&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

  NugetNugetGitHub Workflow Status  


a library for basic math expression manipulations


.Net 5.0.102 sdk or greater

Nuget Package Usage


<PackageReference Include="EMDD.KtExpressions" Version="*.*.*" />


  • Yeah basically, I needed some mathematical expression implementations for my masters thesis in civil engineering which requires the manipulation of piecewise function. I was unable to find one that fits needs so I had to build it from scratch.


EMDD.KtExpressions.Expression.Expression can be instantiated by supplying array of Term, array of KtPolynomials, array of numbers (double, int types etc), with the option to imclude the limit of the functions

Let's say you want to instantiate a function

Sample Expression

it can be written as

//Create the equations first
var eq1 = EMDD.KtPolynomials.KtPolynomial.Create(2, 3);
var eq2 = EMDD.KtPolynomials.KtPolynomial.Create(3, 0, -2);

//create the limits
var lim1= new EMDD.KtExpressions.Limits.Limit(-50, -30);
var lim2= new EMDD.KtExpressions.Limits.Limit(0, 50);

//instantiate the Expression by providing equation parameters in valuetuple form
var expression = new EMDD.KtExpressions.Expression.Expression((eq1, lim1), (eq2, lim2));

KtPolynomials Methods

Basic Math Ops
  • addition, subtraction, multiplications with other expressions, multiplications with constants, division by other expressions, and division by constants
Other Functionalities
  • representation fractions of expressions
  • simplification of basic expression
  • representation of piece-wise functions
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on EMDD.KtExpressions:

Package Downloads

Collection of Math Matrix Methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 280 3/21/2021

Initial Release