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
<PackageReference Include="Lyo.Mathematics.Functions" Version="2.0.0" />
<PackageVersion Include="Lyo.Mathematics.Functions" Version="2.0.0" />
<PackageReference Include="Lyo.Mathematics.Functions" />
paket add Lyo.Mathematics.Functions --version 2.0.0
#r "nuget: Lyo.Mathematics.Functions, 2.0.0"
#:package Lyo.Mathematics.Functions@2.0.0
#addin nuget:?package=Lyo.Mathematics.Functions&version=2.0.0
#tool nuget:?package=Lyo.Mathematics.Functions&version=2.0.0
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
Lyo.MathematicsLyo.Scientific— constants only (no circular dependency onLyo.Scientific.Functions)
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 |
Angle → double. |
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 |
LinearRegressionInput → LinearRegressionResult. |
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
| Product | Versions 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. |
-
.NETStandard 2.0
- FSharp.Core (>= 10.0.100 && < 11.0.0)
- Lyo.Mathematics (>= 2.0.0)
- Lyo.Scientific (>= 2.0.0)
-
net10.0
- FSharp.Core (>= 10.0.100 && < 11.0.0)
- Lyo.Mathematics (>= 2.0.0)
- Lyo.Scientific (>= 2.0.0)
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.