EMDD.KtExpressions 1.0.0

dotnet add package EMDD.KtExpressions --version 1.0.0                
NuGet\Install-Package EMDD.KtExpressions -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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 and Polyglot Notebooks. 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                

  NugetNugetGitHub Workflow Status  

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

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 Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

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

Package Downloads
EMDD.KtMatrix

Collection of Math Matrix Methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 616 3/21/2021

Initial Release