package modular-arithmetic

  1. Overview
  2. Docs
A library for operations on integers modulo some integer (the modulus)

Install

Dune Dependency

Authors

Maintainers

Sources

modular-arithmetic-0.1.tar.gz
sha256=7f2f481ad27d57c0f162e33570982952c75a960f94d9aa84aafbb77e423a8e52
md5=7883c607bb0cd80e309a9bb95584039d

README.adoc.html

README.adoc

= modular-arithmetic =

An ocaml library for operations on integers modulo some integer (the modulus)

== Installation ==

Using opam:

  $ opam install modular-arithmetic

== Usage ==

Example:

  module M = Mod_arith.Make(struct let modulus = 12 end)

  let () =
    assert M.(equal (of_int 5 * of_int 2 + of_string "15") one)

== License ==

This library and associated code are released under the Mozilla Public License
2.0 (check LICENSE.txt).

Copyright (c) 2018, Raphael Sousa Santos <contact@raphaelss.com>
OCaml

Innovation. Community. Security.