Ticket #6845: multinomial_docstrings.2.patch

File multinomial_docstrings.2.patch, 1.2 KB (added by ncohen, 11 years ago)
  • sage/rings/arith.py

    # HG changeset patch
    # User Nathann Cohen <nathann.cohen@gmail.com>
    # Date 1251700235 -7200
    # Node ID 0dbf6b2325c5af280c127695f57481cd7dcc241c
    # Parent  641cb6b921a4fae1f948ac59c13da69db6aafca9
    Fixed docstring in function polynomial()
    
    diff -r 641cb6b921a4 -r 0dbf6b2325c5 sage/rings/arith.py
    a b  
    26322632   
    26332633    INPUT:
    26342634
    2635         - An arbitrary number of integer arguments `k_1,\dots,k_n`
    2636         - A list of integers `[k_1,\dots,k_n]`
    2637 
    2638     OUTPUT:
    2639 
    2640         Returns the integer :
    2641 
    2642         .. math::
    2643 
    2644                \binom{k_1 + \cdots + k_n}{k_1, \cdots, k_n}        = \frac{\left(\sum_{i=1}^n k_i\right)!}{\prod_{i=1}^n k_i!}         = \prod_{i=1}^n \binom{\sum_{j=1}^i k_j}{k_i}
     2635    - An arbitrary number of integer arguments `k_1,\dots,k_n`
     2636    - A list of integers `[k_1,\dots,k_n]`
     2637
     2638    OUTPUT:
     2639
     2640    Returns the integer:
     2641
     2642    .. math::
     2643
     2644           \binom{k_1 + \cdots + k_n}{k_1, \cdots, k_n}
     2645           =\frac{\left(\sum_{i=1}^n k_i\right)!}{\prod_{i=1}^n k_i!}
     2646           = \prod_{i=1}^n \binom{\sum_{j=1}^i k_j}{k_i}
    26452647   
    26462648    EXAMPLES::
    26472649