pallas-math

Crates.iopallas-math
lib.rspallas-math
version0.28.0
sourcesrc
created_at2024-07-01 16:53:11.165834
updated_at2024-07-16 01:44:20.593225
descriptionMathematics functions for Cardano
homepagehttps://github.com/txpipe/pallas
repositoryhttps://github.com/txpipe/pallas
max_upload_size
id1288870
size2,564
Santiago Carmuega (scarmuega)

documentation

https://docs.rs/pallas-math

README

Pallas Math

Crate with all the mathematics functions to support Cardano protocol:

  • [] lncf - Approximate ln(1+x) for x in 0..infinty.
  • [] cf - Compute continued fraction using max steps or bounded list of a/b factors.
  • [] bound - Simple way to find integer powers that bound x.
  • [] contract - Bisect bounds to find the smallest integer power such that factor^n<=x<factor^(n+1).
  • [] find_e - find n with e^n<=x<e^(n+1).
  • [] ln - Compute natural logarithm via continued fraction, first splitting integral part and then using continued fractions approximation for ln(1+x).
  • [] taylor_exp - Compute exp(x) using Taylor expansion.
  • [] taylor_exp_cmp - Efficient way to compare the result of the Taylor expansion of the exponential function to a threshold value.
  • ...
  • ...
Commit count: 511

cargo fmt