Skip to content
goswinrPublic

About

A small math utility libary for F#

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Mathe

Mathe on nuget.org Mathe on fuget.org code size license

Logo

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.

Test

All Tests run in both javascript and dotnet using Scriptorium. go to the tests folder

cd Tests

For testing with .NET:

dotnet run

for testing in JavaScript via Fable:

dotnet tool restore
npm install
npm test

Publishing to NuGet

The 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.

License

MIT

Changelog

0.2.0

  • add tests

0.1.0

  • ported from FsEx library

Credits

Logo inspired by

About

A small math utility libary for F#

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages