Skip to content

improve doctest coverage of libs/mpmath/ext_main.pyx #8791

@sagetrac-mvngu

Description

@sagetrac-mvngu

As the subject says. As of Sage 4.4, the doctest coverage of sage/libs/mpmath/ext_main.pyx is:

[mvngu@sage mpmath]$ sage -coverage ext_main.pyx 
----------------------------------------------------------------------
ext_main.pyx
ERROR: Please add a `TestSuite(s).run()` doctest.
SCORE ext_main.pyx: 0% (0 of 102)

Missing documentation:
 * __cinit__(ctx):
 * default(ctx):
 * _get_prec(ctx):
 * _set_prec(ctx, prec):
 * _set_dps(ctx, n):
 * _get_dps(ctx):
 * _get_prec_rounding(ctx):
 * mpf make_mpf(ctx, tuple v):
 * mpc make_mpc(ctx, tuple v):
 * _convert_param(ctx, x):
 * _wrap_libmp_function(ctx, mpf_f, mpc_f=None, mpi_f=None, doc="<no doc>"):
 * _wrap_specfun(cls, name, f, wrap):
 * __init__(self, mpf_f, mpc_f=None, mpi_f=None, doc="<no doc>"):
 * __call__(self, x, **kwargs):
 * __init__(self, name, f):
 * __call__(self, *args, **kwargs):
 * __richcmp__(self, other, int op):
 * __add__(self, other):
 * __sub__(self, other):
 * __mul__(self, other):
 * __div__(self, other):
 * __mod__(self, other):
 * __pow__(self, other, mod):
 * ae(s, t, rel_eps=None, abs_eps=None):
 * __hash__(self):
 * __repr__(self):
 * __str__(self):
 * real(self):
 * imag(self):
 * conjugate(self):
 * man(self):
 * exp(self):
 * bc(self):
 * __int__(self):
 * __long__(self):
 * __float__(self):
 * __complex__(self):
 * to_fixed(self, prec):
 * __getstate__(self):
 * __setstate__(self, val):
 * __init__(self, x=0, **kwargs):
 * __reduce__(self):
 * _get_mpf(self):
 * _set_mpf(self, v):
 * __nonzero__(self):
 * __hash__(self):
 * real(self):
 * imag(self):
 * conjugate(self):
 * man(self):
 * exp(self):
 * bc(self):
 * to_fixed(self, long prec):
 * __int__(self):
 * __float__(self):
 * __getstate__(self):
 * __setstate__(self, val):
 * __cinit__(self):
 * __neg__(s):
 * __pos__(s):
 * __abs__(s):
 * sqrt(s):
 * __richcmp__(self, other, int op):
 * __init__(self, func, name, docname=''):
 * __call__(self, prec=None, dps=None, rounding=None):
 * _mpf_(self):
 * __repr__(self):
 * __nonzero__(self):
 * __neg__(self):
 * __pos__(self):
 * __abs__(self):
 * sqrt(self):
 * to_fixed(self, prec):
 * __getstate__(self):
 * __setstate__(self, val):
 * __hash__(self):
 * __richcmp__(self, other, int op):
 * __init__(self, real=0, imag=0):
 * __cinit__(self):
 * __reduce__(self):
 * __setstate__(self, val):
 * __repr__(self):
 * __str__(s):
 * __nonzero__(self):
 * __complex__(self):
 * _get_mpc(self):
 * _set_mpc(self, tuple v):
 * real(self):
 * imag(self):
 * __hash__(self):
 * __neg__(s):
 * conjugate(s):
 * __pos__(s):
 * __abs__(s):
 * __richcmp__(self, other, int op):

Missing doctests:
 * convert(ctx, x, strings=True):
 * isnan(ctx, x):
 * isinf(ctx, x):
 * isint(ctx, x):
 * fsum(ctx, terms, bint absolute=False, bint squared=False):
 * fdot(ctx, A, B=None):
 * mag(ctx, x):

CC: @fredrik-johansson @haraldschilly

Component: documentation

Author: Fredrik Johansson, Harald Schilly, David Loeffler

Reviewer: David Loeffler, Jeroen Demeyer

Merged: sage-5.0.beta11

Issue created by migration from https://trac.sagemath.org/ticket/8791

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions