package euler
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
An arithmetic library for OCaml's native integers
Install
dune-project
Dependency
Authors
Maintainers
Sources
euler-0.3.tbz
sha256=b6e887239f69177c121b9b88a48d27abc6b5dd597e5416c16bb2871f29a390ff
sha512=3627c597a6976e88cabceebf501be9f3bc52f26f233a9cac9c1967ad3d385d59c46a803251e265710d665ef949d057733e67cc57458c570288bad33c7445a63b
doc/CHANGES.html
0.3
optimize several functions in Arith:
mulpowfor small baseslog2andlog2sup(5x faster)logandlogsupfor bases 2, 16, 64, 10, 60valuation_of_2number_of_bits_set(7x faster)
- fix overflow in
Arith.mul_quo(renamed tomul_equo) andArith.gcdext - let
Arith.gcdextreturn minimal coefficients - add
Arith.sdiv - add
Arith.mul_{ediv,erem} - add
Arith.{gcd,gcdext,lcm}_of_seq add functions related to integer powers and roots:
Arith.isqrt_if_squareArith.is_powArith.is_pow2Arith.kth_rootArith.is_kth_powArith.smallest_root
add some classical arithmetic functions whose computation uses factorization:
Primes.divisor_pairsPrimes.sum_of_divisorsPrimes.jordanPrimes.carmichaelPrimes.mobiusPrimes.derivative
- add
Primes.order,Primes.order_with_known_multiple,Primes.order_mod_prime_pow Primes.factorsnow performs some iterations of Fermat’s factor searchingBREAKING: rename sequence-related functions:
Arith.sum_seq->sum_of_seqArith.prod_seq->prod_of_seqPrimes.prime_seq->gen_primesPrimes.primes->iter_primes
BREAKING: rename logarithm functions:
Arith.log->Arith.ilogArith.log2->Arith.ilog2Arith.logsup->Arith.ilogsupArith.log2sup->Arith.ilog2sup
- BREAKING: rename
Arith.mul_quotomul_equo - BREAKING: add notation
Arith.( ** )for integer exponentiation - fix
Arith.range_downnot being exposed in the interface
0.2
- add
Primes.prime_seq - lower the minimal supported version of OCaml to 4.07
0.1
- First release
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>