We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71f5b39 commit 426e384Copy full SHA for 426e384
1 file changed
Week04/custom_equation_gamze_kilinc.py
@@ -0,0 +1,20 @@
1
+def custom_equation(
2
+ x: int = 0,
3
+ y: int = 0,
4
+ /,
5
+ a: int = 1,
6
+ b: int = 1,
7
+ *,
8
+ c: int = 1
9
+) -> float:
10
+ """
11
+ Calculates a custom mathematical equation.
12
+
13
+ :param x: First positional-only integer value.
14
+ :param y: Second positional-only integer value.
15
+ :param a: Exponent for x.
16
+ :param b: Exponent for y.
17
+ :param c: Divisor value.
18
+ :return: The result of (x**a + y**b) / c as a float.
19
20
+ return (x ** a + y ** b) / c
0 commit comments