Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jabolopes/go-maths
Provides a generic library for math in Go.
https://github.com/jabolopes/go-maths
generics go go-library golang golang-library math utility
Last synced: 29 days ago
JSON representation
Provides a generic library for math in Go.
- Host: GitHub
- URL: https://github.com/jabolopes/go-maths
- Owner: jabolopes
- License: bsd-3-clause
- Created: 2022-03-24T23:09:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T21:10:16.000Z (about 1 year ago)
- Last Synced: 2024-03-06T13:27:44.427Z (10 months ago)
- Topics: generics, go, go-library, golang, golang-library, math, utility
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-maths
[![PkgGoDev](https://pkg.go.dev/badge/github.com/jabolopes/go-maths)](https://pkg.go.dev/github.com/jabolopes/go-maths)
This package provides a generic library for math.
## Installation
```sh
$ go get github.com/jabolopes/go-maths
```You can use `go get -u` to update the package. If you are using Go modules, you
can also just import the package and it will be automatically downloaded on the
first compilation.## Examples
```go
math.Abs(2)
math.Abs(3.0)
math.Abs(uint32(4))math.Neg(2)
math.Neg(3.0)
math.Neg(uint32(4))
```