Skip to content

Commit 2047669

Browse files
fix: memperbaiki CodeQL
1 parent 206e2f8 commit 2047669

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

math/rieman_integral.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def rieman_integral(fungsiHitung: Callable[[float], float],
3131
x_i = left + 0.5 * delta_x
3232
else:
3333
raise ValueError("masukkan approx benar")
34-
34+
print("type fungsiHitung:", type(fungsiHitung),"callable",callable(fungsiHitung))
3535
sigma += fungsiHitung(x_i)
3636

3737
return delta_x * sigma
@@ -42,11 +42,6 @@ def main(args=None):
4242

4343
doctest.testmod()
4444

45-
# persamaan x
46-
def f(x):
47-
return 1/x
48-
print(rieman_integral(f, 0, 1, 1, "tengah")) # 0.5
49-
5045
# persamaan 4/(1+x^2)
5146
def g(x):
5247
return (4) / (1 + x**2)

0 commit comments

Comments
 (0)