CBMC
|
Represents real numbers as roots (zeros) of a polynomial with rational coefficients. More...
#include <algebraic_number.h>
Public Member Functions | |
algebraic_numbert (const std::vector< rationalt > &coeff) | |
Represent a real number as roots of a polynomial with rational coefficients coeff . | |
algebraic_numbert () | |
The default constructor builds a algebraic_numbert representing real number 0. | |
algebraic_numbert (const rationalt &r) | |
Represent a rational number as algebraic_numbert . | |
constant_exprt | as_expr () const |
const coefficientst & | get_coefficients () const |
Protected Types | |
using | coefficientst = std::vector< rationalt > |
Protected Attributes | |
coefficientst | coefficients |
Represents real numbers as roots (zeros) of a polynomial with rational coefficients.
Cannot represent transcendental numbers.
Definition at line 17 of file algebraic_number.h.
|
protected |
Definition at line 21 of file algebraic_number.h.
Represent a real number as roots of a polynomial with rational coefficients coeff
.
Definition at line 27 of file algebraic_number.h.
|
inline |
The default constructor builds a algebraic_numbert
representing real number 0.
Definition at line 35 of file algebraic_number.h.
Represent a rational number as algebraic_numbert
.
Definition at line 40 of file algebraic_number.h.
constant_exprt algebraic_numbert::as_expr | ( | ) | const |
Definition at line 17 of file algebraic_number.cpp.
|
inline |
Definition at line 47 of file algebraic_number.h.
|
protected |
Definition at line 22 of file algebraic_number.h.