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: K = Qp(next_prime(10^60)) # indirect doctest sage: type(K) <class 'sage.rings.padics.padic_base_leaves.pAdicFieldCappedRelative_with_category'> TESTS:: sage: R = Qp(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 = Qp(3, 1) sage: TestSuite(R).run(elements = [R.random_element() for i in range(3^6)]) sage: R = Qp(3, 2) sage: TestSuite(R).run(elements = [R.random_element() for i in range(3^9)]) sage: R = Qp(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 """ pAdicFieldBaseGeneric.__init__(self, p, prec, print_mode, names, pAdicCappedRelativeElement)
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: K = Qp(101) #indirect doctest """ pAdicFieldBaseGeneric.__init__(self, p, prec, print_mode, names, pAdicCappedRelativeElement)