-
-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,16 +14,16 @@ | |
- Ander Steele | ||
- Kiran Kedlaya (modified gauss_sum 2017/09) | ||
""" | ||
#***************************************************************************** | ||
# **************************************************************************** | ||
# Copyright (C) 2007-2013 David Roe <[email protected]> | ||
# William Stein <[email protected]> | ||
# | ||
# Distributed under the terms of the GNU General Public License (GPL) | ||
# as published by the Free Software Foundation; either version 2 of | ||
# the License, or (at your option) any later version. | ||
# | ||
# http://www.gnu.org/licenses/ | ||
#***************************************************************************** | ||
# https://www.gnu.org/licenses/ | ||
# **************************************************************************** | ||
|
||
from sage.rings.infinity import infinity | ||
|
||
|
@@ -214,7 +214,7 @@ def precprint(prec_type, prec_cap, p): | |
|
||
def trim_zeros(L): | ||
r""" | ||
Strips trailing zeros/empty lists from a list. | ||
Strip trailing zeros/empty lists from a list. | ||
EXAMPLES:: | ||
|
@@ -228,7 +228,7 @@ def trim_zeros(L): | |
sage: trim_zeros([]) | ||
[] | ||
Zeros are also trimmed from nested lists (one deep): | ||
Zeros are also trimmed from nested lists (one deep):: | ||
sage: trim_zeros([[1,0]]) | ||
[[1]] | ||
|