package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.19.0.tar.gz
md5=64b49dbc3205477bd7517642c0b9cbb6
sha512=02fb5b4fb575af79e092492cbec6dc0d15a1d74a07f827f657a72d4e6066532630e5a6d15be4acdb73314bd40b9a321f9ea0584e0ccfe51fd3a56353bd30db9b

doc/micromega_plugin/Micromega_plugin/Polynomial/Poly/index.html

Module Polynomial.PolySource

Representation of polonomial with rational coefficient. a1.m1 + ... + c where

  • ai are rational constants (num type)
  • mi are monomials
  • c is a rational constant
Sourcetype t
Sourceval constant : NumCompat.Q.t -> t

constant c

  • returns

    the constant polynomial c

Sourceval variable : var -> t

variable x

  • returns

    the polynomial 1.x^1

Sourceval addition : t -> t -> t

addition p1 p2

  • returns

    the polynomial p1+p2

Sourceval product : t -> t -> t

product p1 p2

  • returns

    the polynomial p1*p2

Sourceval uminus : t -> t

uminus p

  • returns

    the polynomial -p i.e product by -1

get mi p

  • returns

    the coefficient ai of the monomial mi.

Sourceval fold : (Monomial.t -> NumCompat.Q.t -> 'a -> 'a) -> t -> 'a -> 'a

fold f p a folds f over the monomials of p with non-zero coefficient

Sourceval add : Monomial.t -> NumCompat.Q.t -> t -> t

add m n p

  • returns

    the polynomial n*m + p

OCaml

Innovation. Community. Security.