carl
24.04
Computer ARithmetic Library
|
Go to the source code of this file.
Namespaces | |
carl | |
carl is the main namespace for the library. | |
Functions | |
bool | carl::sqrt_exact (const mpq_class &a, mpq_class &b) |
Calculate the square root of a fraction if possible. More... | |
mpq_class | carl::sqrt (const mpq_class &a) |
std::pair< mpq_class, mpq_class > | carl::sqrt_safe (const mpq_class &a) |
std::pair< mpq_class, mpq_class > | carl::root_safe (const mpq_class &a, uint n) |
Calculate the nth root of a fraction. More... | |
std::pair< mpq_class, mpq_class > | carl::sqrt_fast (const mpq_class &a) |
Compute square root in a fast but less precise way. More... | |
template<> | |
mpz_class | carl::parse< mpz_class > (const std::string &n) |
template<> | |
bool | carl::try_parse< mpz_class > (const std::string &n, mpz_class &res) |
template<> | |
mpq_class | carl::parse< mpq_class > (const std::string &n) |
template<> | |
bool | carl::try_parse< mpq_class > (const std::string &n, mpq_class &res) |
std::string | carl::toString (const mpq_class &_number, bool _infix) |
std::string | carl::toString (const mpz_class &_number, bool _infix) |