Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Performs tanh-sinh quadrature. The call

    quadts(func, *points, ...)

is simply a shortcut for:

    quad(func, *points, ..., method=TanhSinh)

For example, a single integral and a double integral:
(more...)

src/s/y/sympy-HEAD/sympy/core/evalf.py   sympy(Download)
 
import sympy.mpmath.libmp as libmp
from sympy.mpmath import make_mpc, make_mpf, mp, mpc, mpf, nsum, quadts, quadosc
from sympy.mpmath import inf as mpmath_inf
from sympy.mpmath.libmp import (from_int, from_man_exp, from_rational, fhalf,
            quadrature_error = MINUS_INF
        else:
            result, quadrature_error = quadts(f, [xlow, xhigh], error=1)
            quadrature_error = fastlog(quadrature_error._mpf_)
 

src/s/y/sympy-polys-HEAD/sympy/core/evalf.py   sympy-polys(Download)
import sympy.mpmath.libmp as libmp
from sympy.mpmath.libmp.libmpf import dps_to_prec
from sympy.mpmath import mpf, mpc, quadts, quadosc, mp, make_mpf, make_mpc
from sympy.mpmath.libmp import (mpf_pi, mpf_log, mpf_pow, mpf_sin, mpf_cos,
        mpf_atan, mpf_atan2, mpf_e, mpf_exp, from_man_exp, from_int)
            quadrature_error = MINUS_INF
        else:
            result, quadrature_error = quadts(f, [xlow, xhigh], error=1)
            quadrature_error = fastlog(quadrature_error._mpf_)