Skip to content

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

License

Notifications You must be signed in to change notification settings

sonologico/modular-arithmetic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <[email protected]>

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages