# Ticket #11143: trac-11143-ref.patch

File trac-11143-ref.patch, 2.0 KB (added by was, 9 years ago)

fixed

• ## sage/functions/exp_integral.py

# HG changeset patch
# User William Stein <wstein@gmail.com>
# Date 1338237510 25200
# Node ID 25b440a1fd9691de70e90b7d5f503d4e99728fc5
# Parent  c9897b6f2f9fd1a1f13224296bbec8d1b1a437a6
Trac #11143: Referee patch

diff --git a/sage/functions/exp_integral.py b/sage/functions/exp_integral.py
 a return mpmath_utils_call(mpmath.li, z, parent=parent) def _derivative_(self, z, diff_param=None): """ r""" The derivative of \operatorname{li}(z) is 1/log(z). EXAMPLES:: return mpmath_utils_call(mpmath.si, z, parent=parent) def _derivative_(self, z, diff_param=None): """ The derivative of \operatorname{Si}(z) is \sin(z)/z if z is not zero. The derivative at z = 0 is 1 (but this exception is not currently implimented). r""" The derivative of \operatorname{Si}(z) is \sin(z)/z if z is not zero. The derivative at z = 0 is 1 (but this exception is not currently implemented). EXAMPLES:: return mpmath_utils_call(mpmath.ci, z, parent=parent) def _derivative_(self, z, diff_param=None): """ r""" The derivative of \operatorname{Ci}(z) is \cos(z)/z if z is not zero. EXAMPLES:: return mpmath_utils_call(mpmath.shi, z, parent=parent) def _derivative_(self, z, diff_param=None): """ r""" The derivative of \operatorname{Shi}(z) is \sinh(z)/z. EXAMPLES:: E_1(x) = \int_{x}^{\infty} e^{-t}/t dt INPUT: -  x - a positive real number -  n - (default: 0) a nonnegative integer; if OUTPUT: -  float - if n is 0 (the default) or -  list` - list of floats if n 0