A small math utility library for F#. Works in Fable too.
Most functions check their float input for NaN and Infinity and fail instead of passing NaN or Infinity through.
All Tests run in both javascript and dotnet using Scriptorium. go to the tests folder
cd TestsFor testing with .NET:
dotnet runfor testing in JavaScript via Fable:
dotnet tool restore
npm install
npm testThe publish workflow runs the .NET and
JavaScript tests, builds the package, and publishes to nuget.org when a version
tag is pushed. The tag must match the <Version> in Mathe.fsproj (for example,
0.2.2 for version 0.2.2).
Before the first release, sign in to nuget.org as goswinr and add a Trusted
Publishing policy for the existing Mathe package with these values:
| Field | Value |
|---|---|
| Repository owner | goswinr |
| Repository | Mathe |
| Workflow file | releaseNuget.yml |
| Environment | Leave empty |
| Package scope | Mathe |
The workflow uses GitHub OIDC and NuGet/login to obtain a short-lived API key;
no long-lived NuGet API key is needed in GitHub secrets. After updating the
project version, push a matching tag to publish the new package version.
0.2.0
- add tests
0.1.0
- ported from FsEx library