# 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 INPUT: - An arbitrary number of integer arguments k_1,\dots,k_n - A list of integers [k_1,\dots,k_n] OUTPUT: Returns the integer : .. math:: \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} - An arbitrary number of integer arguments k_1,\dots,k_n - A list of integers [k_1,\dots,k_n] OUTPUT: Returns the integer: .. math:: \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} EXAMPLES::