def __init__(self, p, prec, print_mode, names): """ Initialization INPUTS: - ``p`` -- prime - ``prec`` -- precision cap - ``print_mode`` -- dictionary with print options. - ``names`` -- how to print the prime. EXAMPLES:: sage: R = ZpFM(next_prime(10^60)) #indirect doctest sage: type(R) <class 'sage.rings.padics.padic_base_leaves.pAdicRingFixedMod_with_category'> TESTS:: sage: R = ZpFM(2) sage: TestSuite(R).run() sage: TestSuite(R).run(elements = [R.random_element() for i in range(2^10)], max_runs = 2^12) # long time sage: R = ZpFM(3, 1) sage: TestSuite(R).run(elements = [R.random_element() for i in range(3^3)]) sage: R = ZpFM(3, 2) sage: TestSuite(R).run(elements = [R.random_element() for i in range(3^6)]) sage: R = ZpFM(next_prime(10^60)) sage: TestSuite(R).run() sage: TestSuite(R).run(elements = [R.random_element() for i in range(2^4)], max_runs = 2^6) # long time """ pAdicRingBaseGeneric.__init__(self, p, prec, print_mode, names, pAdicFixedModElement)
def __init__(self, p, prec, print_mode, names): """ Initialization INPUTS: - ``p`` -- prime - ``prec`` -- precision cap - ``print_mode`` -- dictionary with print options. - ``names`` -- how to print the prime. EXAMPLES:: sage: R = ZpFM(next_prime(10^60)) #indirect doctest """ pAdicRingBaseGeneric.__init__(self, p, prec, print_mode, names, pAdicFixedModElement)
def __init__(self, p, prec, print_mode, names): """ Initialization. INPUTS: - ``p`` -- prime - ``prec`` -- precision cap - ``print_mode`` -- dictionary with print options. - ``names`` -- how to print the prime. EXAMPLES:: sage: R = ZpCA(next_prime(10^60)) #indirect doctest sage: type(R) <class 'sage.rings.padics.padic_base_leaves.pAdicRingCappedAbsolute_with_category'> TESTS:: sage: R = ZpCA(2) sage: TestSuite(R).run() sage: TestSuite(R).run(elements = [R.random_element() for i in range(2^10)], max_runs = 2^12) # long time sage: R = ZpCA(3, 1) sage: TestSuite(R).run(elements = [R.random_element() for i in range(3^3)]) sage: R = ZpCA(3, 2) sage: TestSuite(R).run(elements = [R.random_element() for i in range(3^6)]) sage: R = ZpCA(next_prime(10^60)) sage: TestSuite(R).run() sage: TestSuite(R).run(elements = [R.random_element() for i in range(2^4)], max_runs = 2^6) # long time """ pAdicRingBaseGeneric.__init__(self, p, prec, print_mode, names, pAdicCappedAbsoluteElement)