mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-02 09:02:09 +00:00
Add support for integer square roots.
[SVN r85184]
This commit is contained in:
@@ -190,6 +190,11 @@ struct tester
|
||||
BOOST_CHECK_EQUAL(mpz_int(lcm(-c, -d)).str(), test_type(lcm(-c1, -d1)).str());
|
||||
BOOST_CHECK_EQUAL(mpz_int(gcd(a, -b)).str(), test_type(gcd(a1, -b1)).str());
|
||||
BOOST_CHECK_EQUAL(mpz_int(lcm(c, -d)).str(), test_type(lcm(c1, -d1)).str());
|
||||
// Integer sqrt:
|
||||
mpz_int r;
|
||||
test_type r1;
|
||||
BOOST_CHECK_EQUAL(sqrt(a, r).str(), sqrt(a1, r1).str());
|
||||
BOOST_CHECK_EQUAL(r.str(), r1.str());
|
||||
}
|
||||
|
||||
void t3()
|
||||
|
||||
Reference in New Issue
Block a user