# 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`
`#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

// Install EMDD.KtExpressions as a Cake Tool
#tool nuget:?package=EMDD.KtExpressions&version=1.0.0```

## EMDD.KtExpressions

a library for basic math expression manipulations

### Requirements

.Net 5.0.102 sdk or greater

### Nuget Package Usage

https://www.nuget.org/packages/EMDD.KtExpressions/

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

### Motivation

• 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.

### Usage

`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 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)

### NuGet packages (1)

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