GiNaCRA
0.6.4
|
An implementation of a multi dimensional real algebraic number providing arithmetic and relational operations. More...
#include <UnivariateRepresentation.h>
Public Member Functions | |
UnivariateRepresentation (const RationalUnivariatePolynomial &rootSource, const RationalUnivariatePolynomial &denominator, const list< RationalUnivariatePolynomial > &numerators, const vector< symbol > &variables) throw ( invalid_argument ) | |
~UnivariateRepresentation () | |
const RationalUnivariatePolynomial | RootSource () const |
const RationalUnivariatePolynomial | Denominator () const |
const list < RationalUnivariatePolynomial > | Numerators () const |
const UnivariateRepresentation | add (UnivariateRepresentation o) throw ( invalid_argument ) |
This number gets all values of the other. | |
const UnivariateRepresentation | minus () const |
Returns the negative value, allocated on the heap. | |
const UnivariateRepresentation | mul (UnivariateRepresentation o) throw ( invalid_argument ) |
Multiplies two real algebraic numbers and returns a reference to their product, allocated on the heap. | |
const UnivariateRepresentation | inverse () const throw ( invalid_argument ) |
Returns the inverse, allocated on the heap. | |
Protected Member Functions | |
bool | is_equal_same_type (const basic &other) |
void | do_print (const print_context &c, unsigned level=0) const |
ex | eval (int level=0) const |
Private Attributes | |
RationalUnivariatePolynomial | mRootSource |
RationalUnivariatePolynomial | mDenominator |
list < RationalUnivariatePolynomial > | mNumerators |
vector< symbol > | mVariables |
An implementation of a multi dimensional real algebraic number providing arithmetic and relational operations.
Notation is following http://www.possibility.com/Cpp/CppCodingStandard.html.
Definition at line 47 of file UnivariateRepresentation.h.
GiNaC::UnivariateRepresentation::UnivariateRepresentation | ( | const RationalUnivariatePolynomial & | rootSource, |
const RationalUnivariatePolynomial & | denominator, | ||
const list< RationalUnivariatePolynomial > & | numerators, | ||
const vector< symbol > & | variables | ||
) | throw ( invalid_argument ) |
rootSource | |
denominator | |
numerators | |
variables |
const UnivariateRepresentation GiNaC::UnivariateRepresentation::add | ( | UnivariateRepresentation | o | ) | throw ( invalid_argument ) |
This number gets all values of the other.
Adds two real algebraic numbers and returns a reference to their sum, allocated on the heap.
o |
const RationalUnivariatePolynomial GiNaC::UnivariateRepresentation::Denominator | ( | ) | const |
void GiNaC::UnivariateRepresentation::do_print | ( | const print_context & | c, |
unsigned | level = 0 |
||
) | const [protected] |
ex GiNaC::UnivariateRepresentation::eval | ( | int | level = 0 | ) | const [protected] |
const UnivariateRepresentation GiNaC::UnivariateRepresentation::inverse | ( | ) | const throw ( invalid_argument ) |
Returns the inverse, allocated on the heap.
bool GiNaC::UnivariateRepresentation::is_equal_same_type | ( | const basic & | other | ) | [protected] |
const UnivariateRepresentation GiNaC::UnivariateRepresentation::minus | ( | ) | const |
Returns the negative value, allocated on the heap.
const UnivariateRepresentation GiNaC::UnivariateRepresentation::mul | ( | UnivariateRepresentation | o | ) | throw ( invalid_argument ) |
Multiplies two real algebraic numbers and returns a reference to their product, allocated on the heap.
o |
const list<RationalUnivariatePolynomial> GiNaC::UnivariateRepresentation::Numerators | ( | ) | const |
const RationalUnivariatePolynomial GiNaC::UnivariateRepresentation::RootSource | ( | ) | const |
RationalUnivariatePolynomial GiNaC::UnivariateRepresentation::mDenominator [private] |
Definition at line 177 of file UnivariateRepresentation.h.
list<RationalUnivariatePolynomial> GiNaC::UnivariateRepresentation::mNumerators [private] |
Definition at line 178 of file UnivariateRepresentation.h.
RationalUnivariatePolynomial GiNaC::UnivariateRepresentation::mRootSource [private] |
Definition at line 176 of file UnivariateRepresentation.h.
vector<symbol> GiNaC::UnivariateRepresentation::mVariables [private] |
Definition at line 179 of file UnivariateRepresentation.h.