Skip to content

Commit 1df1524

Browse files
authored
Update functions_mert_durgun.py
1 parent 0e6a9d2 commit 1df1524

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Week04/functions_mert_durgun.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
custom_power = lambda x=0,/,e=1 : x**e
22

33
def custom_equation(x: int = 0, y: int = 0, /, a: int = 1, b: int = 1, *, c: int = 1) -> float:
4+
"""
5+
:param x: The positional-only integer base for the first term, default is 0
6+
:param y: The positional-only integer base for the second term, default is 0
7+
:param a: The positional-or-keyword integer exponent for the first term, default is 1
8+
:param b: The positional-or-keyword integer exponent for the second term, default is 1
9+
:param c: The keyword-only integer divisor, default is 1
10+
:return: The result of the calculation as a float
11+
:rtype: float
12+
"""
413
return (x**a + y**b) / c
514

615

0 commit comments

Comments
 (0)