A comprehensive Go package offering a rich set of mathematical utilities and operations. From basic arithmetic to medium-level statistical computations, make your Go projects mathematically powerful.
- Addition (Generic)
Add[T numeric](a, b T) T
: Adds two numbers together.
- Subtraction (Generic)
Subtract[T numeric](a, b T) T
: Subtracts one number from another.
- Multiplication (Generic)
Multiply[T numeric](a, b T) T
: Multiplies two numbers together.
- Division (Generic)
Divide[T numeric](a, b T) T
: Divides one number by another.
To install go-mathify, you can just run: bash go get github.com/ashwin2125/go-mathify