Skip to content

Commit 976d60e

Browse files
fix: memperbaiki CodeQL
1 parent b9e85b8 commit 976d60e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

math/rieman_integral.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ def g(x):
5252
return (4) / (1 + x**2)
5353
print(rieman_integral(g, 0, 1, 1000, "tengah")) # 3.1415927369231227
5454

55-
# persamaan sin
56-
def y(x):
57-
return math.sin(x)
58-
print(rieman_integral(y, 0, math.pi / 2, 100, "kiri")) # 0.9921254566056331
55+
56+
print(rieman_integral(math.sin, 0, math.pi / 2, 100, "kiri")) # 0.9921254566056331
5957

6058

6159
if __name__ == "__main__":

0 commit comments

Comments
 (0)