Lyo.Mathematics.Functions 2.0.0

dotnet add package Lyo.Mathematics.Functions --version 2.0.0
                    
NuGet\Install-Package Lyo.Mathematics.Functions -Version 2.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="Lyo.Mathematics.Functions" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lyo.Mathematics.Functions" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Lyo.Mathematics.Functions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lyo.Mathematics.Functions --version 2.0.0
                    
#r "nuget: Lyo.Mathematics.Functions, 2.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.
#:package Lyo.Mathematics.Functions@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lyo.Mathematics.Functions&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Lyo.Mathematics.Functions&version=2.0.0
                    
Install as a Cake Tool

Lyo.Mathematics.Functions

F# implementation layer for Lyo.Mathematics: static *Functions classes with static member entry points callable from C# or F#. Uses * Lyo.Scientific.ScientificConstants* for universal physical constants where needed (gravitation, ideal gas).

Target frameworks: netstandard2.0, net10.0

Dependencies


Calling from C#

using Lyo.Mathematics;
using Lyo.Mathematics.Functions;

var mean = StatisticsFunctions.Mean(new[] { 1.0, 2.0, 3.0 });
var fft = TransformFunctions.FastFourierTransform(new[]
{
    new ComplexNumber(1, 0), new ComplexNumber(0, 0),
    new ComplexNumber(-1, 0), new ComplexNumber(0, 0)
});

Curated discovery: MathematicsFormulaRegistry.All in Lyo.Mathematics.


ArithmeticFunctions

Member Summary
Clamp(value, minimum, maximum) Finite bounds; throws if minimum > maximum.
PercentageChange(originalValue, newValue) Percent change vs non-zero original.
GrowthRate(initialValue, finalValue, periods) CAGR-style % over positive periods.
CompoundInterest(principal, annualRate, compoundsPerYear, years) Discrete compounding.
RatePerSecond(value, elapsedTime) value / elapsedTime.Seconds (positive duration).

AlgebraFunctions

Member Summary
EvaluatePolynomial(coefficients, x) / EvaluatePolynomial(PolynomialInput) Horner-style evaluation.
EvaluatePolynomialDerivative(coefficients, x) Derivative at x.
SolveLinear(a, b) Root of ax + b = 0.
SolveQuadratic(QuadraticEquationInput) QuadraticEquationResult (roots discriminant-aware).

GeometryFunctions

Member Summary
CircleArea / CircleCircumference From CircleMeasurementInput.
RectangleArea / RectanglePerimeter / RectangleDiagonal From RectangleMeasurementInput.
RightTriangleHypotenuse RightTriangleInput.
DistanceBetween(Vector2D, Vector2D) Euclidean distance.
DegreesToRadians / RadiansToDegrees double helpers.

TrigonometryFunctions

Member Summary
Sin / Cos / Tan Angledouble.
Asin / Acos / Atan Inverses to angles.
Sinh / Cosh / Tanh Hyperbolic.
LawOfCosinesForSide Two sides + included angle → third side.
LawOfCosinesForAngle TriangleInput → included angle.
LawOfSinesForSide Known side/angle pair + target angle.

LinearAlgebraFunctions

Member Summary
Determinant Matrix2x2 / Matrix3x3.
Transpose Matrix2x2 / Matrix3x3.
Multiply Matrix×matrix, matrix×vector.
FrobeniusNorm 2×2 and 3×3.
Inverse 2×2 and 3×3 (throws if singular).
Solve3x3 / Solve2x2 Linear systems.
QrDecomposition(double[,]) Full QR for tall matrices; returns QrDecompositionResult.
Eigenvalues(Matrix2x2) Eigen2x2Result.

StatisticsFunctions

Member Summary
Mode, Range, Mean, Median Basic summaries on double[].
Variance / StandardDeviation Population or sample (sample flag).
Describe Count, mean, spread, min, max.
MovingAverage, ExponentialMovingAverage Smoothing.
Percentile, Quartiles, InterquartileRange Order-statistics.
RollingMedian / RollingMinimum / RollingMaximum / RollingStandardDeviation Windowed.
ZScore, ZScores, LatestZScore, IsAnomalyByZScore Z-score anomaly sketch.
MedianAbsoluteDeviation, IsAnomalyByMad Robust alternative.
Skewness, Kurtosis Shape.
Covariance, PearsonCorrelation, SpearmanCorrelation, CovarianceCorrelation Bivariate.
WeightedMean, WeightedVariance, WeightedStatistics WeightedValuesInput.
MeanConfidenceInterval CI for the mean.
LinearRegression LinearRegressionInputLinearRegressionResult.

DistributionsFunctions

PDF/CDF/summary helpers for: Normal, Binomial, Poisson, Exponential (incl. inverse CDF + summary), Uniform, Geometric, Negative binomial (PMF). See parameter types in Lyo.Mathematics.Models.


PhysicsFunctions

Classical mechanics, waves, circuits, ideal gas, BMI — inputs are *Input types or quantities from Lyo.Mathematics.Quantities. Includes: momentum, force, kinetic energy, average velocity, projectile motion, angular velocity/acceleration, torque, power, impulse, elastic / perfectly inelastic 1D collisions, gravitational force and potential, spring force and potential, pressure from force/area, density, wave speed and frequency/wavelength relations, Ohm’s-law trio, DC power, series/parallel resistance, series/parallel capacitance, ideal gas P/V/T, BodyMassIndex.


CalculusFunctions

Member Summary
TrapezoidalIntegration / SimpsonsRule NumericalIntegrationInput.
Differentiate DifferentiationInput (finite difference).
Bisection / NewtonRaphson / Secant Root finding on Func<double,double>.
EulerSolve / RungeKutta4Solve OdeInput first-order IVP.
LinearInterpolation (doubles) Parameter t.
AdaptiveIntegration AdaptiveIntegrationInput (Simpson refinement).
Jacobian VectorFunctionInput.
Hessian ScalarMultivariateFunctionInput.

InterpolationFunctions

Linear, InverseLinear, Linear(InterpolationInput), PiecewiseLinear.


FinancialFunctions

FutureValue, PresentValue, LoanPayment, NetPresentValue.


SignalFunctions

Convolution, MovingSum, NormalizeMinMax.


TransformFunctions

Member Summary
FastFourierTransform Cooley–Tukey FFT; length must be power of two.
InverseFastFourierTransform Inverse FFT.

OptimizationFunctions

GradientDescent(GradientDescentInput)OptimizationResult.


ComplexFunctions

Conjugate, Multiply, Divide, ToPolar, FromPolar.


Repository

GitHub Repository

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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 Lyo.Mathematics.Functions:

Package Downloads
Lyo.Metrics.Statistics

Statistical analysis extensions for Lyo.Metrics histograms (percentiles, quartiles, moving averages, anomaly detection). Pulls in Lyo.Mathematics and Lyo.Mathematics.Functions so the base Lyo.Metrics can stay dependency-light.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 117 9/9/2026
1.0.13 139 8/25/2026
1.0.11 135 8/23/2026
1.0.9 133 8/22/2026
1.0.6 129 8/20/2026
1.0.4 167 8/20/2026
1.0.3 134 8/19/2026
1.0.2 137 8/19/2026
1.0.1 142 8/18/2026
1.0.0 145 8/16/2026