Aryth 0.2.22
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 Aryth --version 0.2.22
NuGet\Install-Package Aryth -Version 0.2.22
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="Aryth" Version="0.2.22" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aryth --version 0.2.22
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Aryth, 0.2.22"
#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 Aryth as a Cake Addin #addin nuget:?package=Aryth&version=0.2.22 // Install Aryth as a Cake Tool #tool nuget:?package=Aryth&version=0.2.22
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Basic math utils
Features
- Extend functions for float and double. e.g. Round, AlmostEqual, Limit.
- Compute characteristic of array or 2d-array, e.g. Bound, Scale.
- Methods for polar coordinates, e.g. Rotate, Distance, Near.
- Parse algebraic expression and calculate, e.g. parse "3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3" and return 3.5.
Content
Package | Content |
---|---|
Aryth |
The core library, including all Aryth sub projects |
Aryth.Bounds |
Compute (min, max) for array and 2d-array |
Aryth.Calculator |
Parse algebraic expression and calculate |
Aryth.Comparer |
Comparer for array sort |
Aryth.Coord |
Functions for Descartes coordinates |
Aryth.Flopper |
Colorize array and 2d-array in terminal |
Aryth.Math |
Extend functions for float and double |
Aryth.NiceScale |
Compute (nice) scale for an array |
Aryth.Polar |
Functions for polar coordinates |
Aryth.Types |
Base types in Aryth series |
Install
Aryth targets .NET Standard 2.0, fits both .NET and .NET Framework.
Install Aryth package and sub packages.
NuGet Package Manager:
Install-Package Aryth
.NET CLI:
dotnet add package Aryth
All versions can be found on nuget.
Usage
Convert color
using Aryth.Calculator;
var expression = "3 + 4 * 2 / ( 1 - 5 ) ^ 2";
var result = expression.Calculate();
// result = 3.5
Bound of array
using Aryth.Bounds;
var samples = new[] { "foo", "bar", "zen", "16", "24", "32", "64" };
var (vector, bound) = vec.SoleBound();
// vector = [ NaN, NaN, NaN, 1, 2, 3 ]
// bound = ( 16, 64 )
Flop an array
using Aryth.Flopper;
var samples = new[] { "foo", "bar", "zen", "des" };
var flopper = FiniteFlopper<string>.From(samples);
Console.WriteLine($">> [next] {flopper.MoveNext()} {flopper.Current}"); // >> [next] True bar
Console.WriteLine($">> [next] {flopper.MoveNext()} {flopper.Current}"); // >> [next] True des
Console.WriteLine($">> [next] {flopper.MoveNext()} {flopper.Current}"); // >> [next] True foo
Console.WriteLine($">> [next] {flopper.MoveNext()} {flopper.Current}"); // >> [next] True zen
Console.WriteLine($">> [next] {flopper.MoveNext()} {flopper.Current}"); // >> [next] False zen
Examples
Aryth has a test suite in the test project.
Feedback
Aryth is licensed under the MIT license.
Bug report and contribution are welcome at the GitHub 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. |
.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.
-
.NETStandard 2.0
- Aryth.Bounds (>= 0.2.22)
- Aryth.Calculator (>= 0.2.22)
- Aryth.Comparer (>= 0.2.22)
- Aryth.Coord (>= 0.2.22)
- Aryth.Math (>= 0.2.22)
- Aryth.NiceScale (>= 0.2.22)
- Aryth.Polar (>= 0.2.22)
- Aryth.Types (>= 0.2.22)
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 |
---|---|---|
0.3.8 | 48 | 11/27/2024 |
0.3.6 | 51 | 11/26/2024 |
0.3.5 | 72 | 11/25/2024 |
0.3.4 | 62 | 11/25/2024 |
0.3.3 | 71 | 11/24/2024 |
0.3.2 | 69 | 11/24/2024 |
0.3.1 | 68 | 11/24/2024 |
0.3.0 | 70 | 11/24/2024 |
0.2.24 | 79 | 11/5/2024 |
0.2.23 | 79 | 11/2/2024 |
0.2.22 | 74 | 11/1/2024 |
0.2.21 | 446 | 10/25/2021 |
0.2.20 | 345 | 10/25/2021 |
0.2.18 | 389 | 10/25/2021 |
0.2.17 | 402 | 10/25/2021 |
0.2.16 | 378 | 10/25/2021 |
0.2.15 | 429 | 10/25/2021 |
0.2.13 | 399 | 10/25/2021 |
0.2.12 | 365 | 10/25/2021 |
0.2.11 | 370 | 10/11/2021 |
0.2.10 | 463 | 10/10/2021 |
0.2.9 | 455 | 10/9/2021 |
0.2.8 | 383 | 10/8/2021 |
0.2.7 | 357 | 10/8/2021 |
0.2.5 | 371 | 10/5/2021 |
0.2.4 | 367 | 10/5/2021 |
0.2.3 | 449 | 10/3/2021 |
0.2.2 | 445 | 10/3/2021 |
0.2.0 | 460 | 9/27/2021 |
0.1.23 | 361 | 9/27/2021 |
0.1.22 | 396 | 9/26/2021 |
0.1.21 | 438 | 9/26/2021 |
0.1.20 | 406 | 9/5/2021 |
0.1.19 | 436 | 9/4/2021 |
0.1.18 | 433 | 9/4/2021 |
0.1.17 | 398 | 9/3/2021 |
0.1.16 | 418 | 9/3/2021 |
0.1.15 | 375 | 9/2/2021 |
0.1.14 | 375 | 9/2/2021 |
0.1.13 | 397 | 9/2/2021 |
0.1.12 | 394 | 8/31/2021 |
0.1.11 | 401 | 8/31/2021 |
0.1.10 | 380 | 8/30/2021 |
0.1.9 | 380 | 8/30/2021 |
0.1.8 | 388 | 8/30/2021 |
0.1.7 | 375 | 8/30/2021 |
0.1.6 | 376 | 8/30/2021 |
0.1.5 | 389 | 8/29/2021 |
0.1.4 | 388 | 8/29/2021 |
0.1.3 | 396 | 8/29/2021 |
0.1.2 | 428 | 8/29/2021 |