TLio.Extensions.Math
1.1.0-preview.4
This is a prerelease version of TLio.Extensions.Math.
There is a newer prerelease 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.1.0-preview.4
NuGet\Install-Package TLio.Extensions.Math -Version 1.1.0-preview.4
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.1.0-preview.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TLio.Extensions.Math" Version="1.1.0-preview.4" />
<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.1.0-preview.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TLio.Extensions.Math, 1.1.0-preview.4"
#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.1.0-preview.4
#: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.1.0-preview.4&prerelease
#tool nuget:?package=TLio.Extensions.Math&version=1.1.0-preview.4&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 | 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.
-
net10.0
- TLio.Core (>= 1.1.0-preview.4)
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.1.0-preview.5 | 59 | 9/27/2026 |
| 1.1.0-preview.4 | 40 | 9/27/2026 |
| 1.1.0-preview.3 | 51 | 9/24/2026 |
| 1.1.0-preview.2 | 39 | 9/24/2026 |
| 1.1.0-preview.1 | 44 | 9/24/2026 |
| 1.0.1 | 190 | 9/24/2026 |
| 1.0.0 | 85 | 9/20/2026 |
| 0.10.0-preview.6 | 42 | 9/20/2026 |
| 0.10.0-preview.5 | 48 | 9/20/2026 |
| 0.10.0-preview.4 | 52 | 9/18/2026 |
| 0.10.0-preview.3 | 59 | 9/18/2026 |
| 0.10.0-preview.2 | 50 | 9/13/2026 |
| 0.10.0-preview.1 | 77 | 8/24/2026 |
| 0.9.0 | 114 | 8/23/2026 |
| 0.9.0-preview.14 | 84 | 8/22/2026 |
| 0.9.0-preview.13 | 68 | 8/22/2026 |
| 0.9.0-preview.12 | 68 | 8/22/2026 |
| 0.9.0-preview.11 | 62 | 8/22/2026 |
| 0.9.0-preview.10 | 68 | 8/22/2026 |
| 0.9.0-preview.9 | 64 | 8/21/2026 |
Loading failed