Exemple #1
0
        public void BasicRoot()
        {
            string AsString;

            using mpz_t a = new mpz_t("936995247845762439229916837840025004943963737679442023171062337518037547173883302933966320549");
            AsString      = a.ToString();
            Assert.AreEqual("936995247845762439229916837840025004943963737679442023171062337518037547173883302933966320549", AsString);

            mpz_t b = a.NthRoot(3);

            AsString = b.ToString();
            Assert.AreEqual("9785412309485720938412983404349", AsString);
        }