Skip to content

Commit b9e85b8

Browse files
fix: memperbaiki CodeQL
1 parent 0a7e753 commit b9e85b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

math/rieman_integral.py

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

55-
56-
print(rieman_integral(math.sin, 0, math.pi / 2, 100, "kiri")) # 0.9921254566056331
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
5759

5860

5961
if __name__ == "__main__":

0 commit comments

Comments
 (0)