Ticket #15058: trac15058.patch

File trac15058.patch, 2.5 KB (added by eviatarbach, 7 years ago)
  • doc/en/reference/functions/index.rst

    # HG changeset patch
    # User Eviatar Bach <eviatarbach@gmail.com>
    # Date 1376795294 25200
    # Node ID 6c7b65e1ac9416615aa2413cc396f85638136b8e
    # Parent  23628994571411c7f0ae342fd05b2e32f2b61143
    Adding trigonometric and spike functions to documentation
    
    diff --git a/doc/en/reference/functions/index.rst b/doc/en/reference/functions/index.rst
    a b  
    55   :maxdepth: 2
    66
    77   sage/functions/log
     8   sage/functions/trig
    89   sage/functions/hyperbolic
    910   sage/functions/transcendental
    1011   sage/functions/piecewise
     12   sage/functions/spike_function
    1113   sage/functions/orthogonal_polys
    1214   sage/functions/other
    1315   sage/functions/special
  • sage/functions/spike_function.py

    diff --git a/sage/functions/spike_function.py b/sage/functions/spike_function.py
    a b  
     1r"""
     2Spike Functions
    13
     4AUTHORS:
    25
     6- William Stein (2007-07): initial version
     7
     8- Karl-Dieter Crisman (2009-09): adding documentation and doctests
     9"""
     10#*****************************************************************************
     11#       Copyright (C) 2007 William Stein <wstein@gmail.com>
     12#       Copyright (C) 2009 Karl-Dieter Crisman <kcrisman@gmail.com>
     13#
     14#  Distributed under the terms of the GNU General Public License (GPL)
     15#  as published by the Free Software Foundation; either version 2 of
     16#  the License, or (at your option) any later version.
     17#                  http://www.gnu.org/licenses/
     18#*****************************************************************************
    319import math
    420
    521from sage.plot.all import line
  • sage/functions/trig.py

    diff --git a/sage/functions/trig.py b/sage/functions/trig.py
    a b  
    1 """
     1r"""
    22Trigonometric Functions
    33"""
    44from sage.symbolic.function import BuiltinFunction, GinacFunction
     
    121121
    122122class Function_sec(BuiltinFunction):
    123123    def __init__(self):
    124         """
     124        r"""
    125125        The secant function
    126126
    127127        EXAMPLES::
     
    212212
    213213class Function_csc(BuiltinFunction):
    214214    def __init__(self):
    215         """
     215        r"""
    216216        The cosecant function.
    217217
    218218        EXAMPLES::
     
    304304
    305305class Function_cot(BuiltinFunction):
    306306    def __init__(self):
    307         """
     307        r"""
    308308        The cotangent function.
    309309
    310310        EXAMPLES::
     
    758758
    759759class Function_arctan2(GinacFunction):
    760760    def __init__(self):
    761         """
     761        r"""
    762762        The modified arctangent function.
    763763
    764764        Returns the arc tangent (measured in radians) of `y/x`, where