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

File trac-11143-ref.2.patch, 2.0 KB (added by benjaminfjones, 9 years ago)
  • sage/functions/exp_integral.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1338233475 25200
    # Node ID e7ca0e32ad52c8b7cb68e0b601c7706211b233c1
    # Parent  e79a6bd34a6e79ce53d86b56c3feebea75d331c3
    Trac #11143: Referee patch
    
    diff --git a/sage/functions/exp_integral.py b/sage/functions/exp_integral.py
    a b  
    466466        return mpmath_utils_call(mpmath.li, z, parent=parent)
    467467
    468468    def _derivative_(self, z, diff_param=None):
    469         """
     469        r"""
    470470        The derivative of `\operatorname{li}(z) is `1/log(z)`.
    471471
    472472        EXAMPLES::
     
    657657        return mpmath_utils_call(mpmath.si, z, parent=parent)
    658658
    659659    def _derivative_(self, z, diff_param=None):
    660         """
    661         The derivative of `\operatorname{Si}(z)` is `\sin(z)/z` if `z` is not zero. The derivative
    662         at `z = 0` is `1` (but this exception is not currently implimented).
     660        r"""
     661        The derivative of `\operatorname{Si}(z)` is `\sin(z)/z` if `z`
     662        is not zero. The derivative at `z = 0` is `1` (but this
     663        exception is not currently implemented).
    663664
    664665        EXAMPLES::
    665666
     
    800801        return mpmath_utils_call(mpmath.ci, z, parent=parent)
    801802
    802803    def _derivative_(self, z, diff_param=None):
    803         """
     804        r"""
    804805        The derivative of `\operatorname{Ci}(z)` is `\cos(z)/z` if `z` is not zero.
    805806
    806807        EXAMPLES::
     
    953954        return mpmath_utils_call(mpmath.shi, z, parent=parent)
    954955
    955956    def _derivative_(self, z, diff_param=None):
    956         """
     957        r"""
    957958        The derivative of `\operatorname{Shi}(z)` is `\sinh(z)/z`.
    958959
    959960        EXAMPLES::
     
    12721273
    12731274                      E_1(x) = \int_{x}^{\infty} e^{-t}/t dt
    12741275
    1275 
    1276 
    12771276    INPUT:
    12781277
    1279 
    12801278    -  ``x`` - a positive real number
    12811279
    12821280    -  ``n`` - (default: 0) a nonnegative integer; if
     
    12871285
    12881286    OUTPUT:
    12891287
    1290 
    12911288    -  ``float`` - if n is 0 (the default) or
    12921289
    12931290    -  ``list`` - list of floats if n 0