@ligo/math-lib
A math library for LIGO with support for Float & Rational numbers
Installation
ligo install @ligo/math-lib
Readme
math-lib-cameligo
This repository contains a math library for LIGO. It is
provided in two flavors (Float
& Rational
), and the project is structured as
follows
- core: This contains basic math functions
like
isqrt
,power
,factorial
,min
,max
,log_10
. - float: This provides floating point arithmetic for LIGO (which is not supported natively by Michelson). It also provides some useful trigonometric functions.
- rational: This provides rational arithmetic for LIGO (which is not supported natively by Michelson). It also provides some useful trigonometric functions.