Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions maths/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

5 changes: 3 additions & 2 deletions maths/abs_min.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from Maths.abs import absVal
from abs import abs_val

def absMin(x):
"""
# >>>absMin([0,5,1,11])
Expand All @@ -8,7 +9,7 @@ def absMin(x):
"""
j = x[0]
for i in x:
if absVal(i) < absVal(j):
if abs_val(i) < abs_val(j):
j = i
return j

Expand Down