package coq

  1. Overview
  2. Docs
Formal proof management system

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.14.0.tar.gz
sha256=b1501d686c21836302191ae30f610cca57fb309214c126518ca009363ad2cd3c

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.