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
md5=7883c607bb0cd80e309a9bb95584039d

Description

Published: 20 May 2018

README

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>

Dependencies (2)

  1. jbuilder >= "1.0+beta7"
  2. ocaml >= "4.05"

Dev Dependencies (1)

  1. ounit with-test

Used by

None

Conflicts

None