{"id":25103166,"url":"https://github.com/sharpyr/aryth","last_synced_at":"2025-10-16T15:47:14.481Z","repository":{"id":57184536,"uuid":"333766221","full_name":"sharpyr/Aryth","owner":"sharpyr","description":"Numeric and statistics extension for .NET Standard","archived":false,"fork":false,"pushed_at":"2024-11-29T22:58:40.000Z","size":239,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T21:38:57.345Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharpyr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-28T13:24:45.000Z","updated_at":"2024-11-29T22:58:44.000Z","dependencies_parsed_at":"2024-11-24T04:02:28.731Z","dependency_job_id":null,"html_url":"https://github.com/sharpyr/Aryth","commit_stats":null,"previous_names":["hoyeungw/aryth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpyr%2FAryth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpyr%2FAryth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpyr%2FAryth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpyr%2FAryth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharpyr","download_url":"https://codeload.github.com/sharpyr/Aryth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246769972,"owners_count":20830771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-07T21:38:58.976Z","updated_at":"2025-10-16T15:47:09.423Z","avatar_url":"https://github.com/sharpyr.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Banner](https://raw.githubusercontent.com/sharpyr/Aryth/refs/heads/master/media/aryth-banner.svg)\n\nBasic math utils\n\n[![Version](https://img.shields.io/nuget/vpre/Aryth.svg)](https://www.nuget.org/packages/Aryth)\n[![Downloads](https://img.shields.io/nuget/dt/Aryth.svg)](https://www.nuget.org/packages/Aryth)\n[![Dependent Libraries](https://img.shields.io/librariesio/dependents/nuget/Aryth.svg?label=dependent%20libraries)](https://libraries.io/nuget/Aryth)\n[![Language](https://img.shields.io/badge/language-C%23-blueviolet.svg)](https://dotnet.microsoft.com/learn/csharp)\n[![Compatibility](https://img.shields.io/badge/compatibility-.NET%20Standard%202.0-blue.svg)]()\n[![License](https://img.shields.io/github/license/sharpyr/Aryth.svg)](https://github.com/sharpyr/Aryth/LICENSE)\n\n## Features\n\n- Extend functions for float and double. e.g. Round, AlmostEqual, Limit.\n- Compute characteristic of array or 2d-array, e.g. Bound, Scale.\n- Methods for polar coordinates, e.g. Rotate, Distance, Near.\n- Parse algebraic expression and calculate, e.g. parse \"3 + 4 * 2 / ( 1 - 5 ) ^ 2 ^ 3\" and return 3.5.\n\n## Content\n\n| Package            | Content                                            |\n|--------------------|----------------------------------------------------|\n| `Aryth`            | The core library, including all Aryth sub projects |\n| `Aryth.Bounds`     | Compute (min, max) for array and 2d-array          |\n| `Aryth.Calculator` | Parse algebraic expression and calculate           |\n| `Aryth.Comparer`   | Comparer for array sort                            |\n| `Aryth.Coord`      | Functions for Descartes coordinates                |\n| `Aryth.Flopper`    | Colorize array and 2d-array in terminal            |\n| `Aryth.Math`       | Extend functions for float and double              |\n| `Aryth.NiceScale`  | Compute (nice) scale for an array                  |\n| `Aryth.Polar`      | Functions for polar coordinates                    |\n| `Aryth.Types`      | Base types in Aryth series                         |\n\n## Install\n\nAryth targets .NET Standard 2.0, fits both .NET and .NET Framework.\n\nInstall [Aryth package](https://www.nuget.org/packages/Aryth) and sub packages.\n\nNuGet Package Manager:\n\n```powershell\nInstall-Package Aryth\n```\n\n.NET CLI:\n\n```shell\ndotnet add package Aryth\n```\n\nAll versions can be found [on nuget](https://www.nuget.org/packages/Aryth#versions-body-tab).\n\n## Usage\n\n### Convert color\n\n```csharp\nusing Aryth.Calculator;\n\nvar expression = \"3 + 4 * 2 / ( 1 - 5 ) ^ 2\";\nvar result = expression.Calculate();\n// result = 3.5\n```\n\n### Bound of array\n\n```csharp\nusing Aryth.Bounds;\n\nvar samples = new[] { \"foo\", \"bar\", \"zen\", \"16\", \"24\", \"32\", \"64\" };\nvar (vector, bound) = vec.SoleBound();\n// vector = [ NaN, NaN, NaN, 1, 2, 3 ]\n// bound = ( 16, 64 )\n```\n\n### Flop an array\n```csharp\nusing Aryth.Flopper;\n\nvar samples = new[] { \"foo\", \"bar\", \"zen\", \"des\" };\nvar flopper = FiniteFlopper\u003cstring\u003e.From(samples);\nConsole.WriteLine($\"\u003e\u003e [next] {flopper.MoveNext()} {flopper.Current}\"); // \u003e\u003e [next] True bar\nConsole.WriteLine($\"\u003e\u003e [next] {flopper.MoveNext()} {flopper.Current}\"); // \u003e\u003e [next] True des\nConsole.WriteLine($\"\u003e\u003e [next] {flopper.MoveNext()} {flopper.Current}\"); // \u003e\u003e [next] True foo\nConsole.WriteLine($\"\u003e\u003e [next] {flopper.MoveNext()} {flopper.Current}\"); // \u003e\u003e [next] True zen\nConsole.WriteLine($\"\u003e\u003e [next] {flopper.MoveNext()} {flopper.Current}\"); // \u003e\u003e [next] False zen\n```\n\n\u003e \n# Examples\n---------------------\nAryth has a test suite in the [test project](https://github.com/sharpyr/Aryth/tree/master/Aryth.Test/Src).\n\n## Feedback\n\nAryth is licensed under the [MIT](https://github.com/sharpyr/Aryth/LICENSE) license.\n\nBug report and contribution are welcome at [the GitHub repository](https://github.com/sharpyr/Aryth).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpyr%2Faryth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharpyr%2Faryth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpyr%2Faryth/lists"}