TLio.Extensions.Math
1.3.0-preview.5
This is a prerelease version of TLio.Extensions.Math.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TLio.Extensions.Math --version 1.3.0-preview.5
NuGet\Install-Package TLio.Extensions.Math -Version 1.3.0-preview.5
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="TLio.Extensions.Math" Version="1.3.0-preview.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TLio.Extensions.Math" Version="1.3.0-preview.5" />
<PackageReference Include="TLio.Extensions.Math" />
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 TLio.Extensions.Math --version 1.3.0-preview.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TLio.Extensions.Math, 1.3.0-preview.5"
#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 TLio.Extensions.Math@1.3.0-preview.5
#: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=TLio.Extensions.Math&version=1.3.0-preview.5&prerelease
#tool nuget:?package=TLio.Extensions.Math&version=1.3.0-preview.5&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TLio.Extensions.Math
Math and aggregation functions for TLio. Format-agnostic —
works against JSON, XML, and YAML through IExecutionContext<TNode>.
dotnet add package TLio.Extensions.Math
Quick start
using Newtonsoft.Json.Linq;
using TLio.Client;
using TLio.Extensions.Math;
using TLio.Json;
var data = JToken.Parse("""{ "amounts": [10, 25, 7] }""");
var script = """
[
{ "command": "add", "path": "$.total", "value": "=sum($.amounts)" }
]
""";
var options = ParseOptions<JToken>.CreateDefault();
options.FunctionsProvider.RegisterMath<JToken>();
var engine = new ScriptEngine<JToken>(options.CommandsProvider, options.FunctionsProvider);
var result = engine.Execute(script, data, JsonExecutionContext.CreateDefault());
// result.Data["total"] → 42
Functions
Aggregation — sum · avg · count · min · max · median
Arithmetic — abs · ceiling · floor · round · sqrt · pow · subtract · modulo ·
calculate
Conditional aggregation — sumif · sumifs · countif · countifs · averageif ·
averageifs · minifs · maxifs
License
MIT — see the repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.6.0-preview.1 | 77 | 11/3/2026 |
| 1.5.2 | 88 | 11/16/2026 |
| 1.5.1 | 152 | 11/2/2026 |
| 1.5.0 | 108 | 11/2/2026 |
| 1.5.0-preview.5 | 61 | 11/2/2026 |
| 1.5.0-preview.3 | 87 | 10/23/2026 |
| 1.5.0-preview.2 | 60 | 10/23/2026 |
| 1.5.0-preview.1 | 64 | 10/22/2026 |
| 1.4.1 | 186 | 10/22/2026 |
| 1.4.0 | 131 | 10/19/2026 |
| 1.3.0 | 106 | 10/19/2026 |
| 1.3.0-preview.9 | 60 | 10/19/2026 |
| 1.3.0-preview.8 | 58 | 10/19/2026 |
| 1.3.0-preview.7 | 63 | 10/19/2026 |
| 1.3.0-preview.6 | 62 | 10/19/2026 |
| 1.3.0-preview.5 | 71 | 10/19/2026 |
| 1.3.0-preview.4 | 67 | 10/19/2026 |
| 1.3.0-preview.3 | 69 | 10/18/2026 |
| 1.3.0-preview.2 | 72 | 10/18/2026 |
| 1.3.0-preview.1 | 68 | 10/12/2026 |
Loading failed