Skip to content

Commit 2409e25

Browse files
Update maths/trapezoidal_rule.py
Co-authored-by: Tianyi Zheng <[email protected]>
1 parent 9190304 commit 2409e25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

maths/trapezoidal_rule.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def f(x):
7676
>>> f(0.5)
7777
0.25
7878
"""
79-
y = float((x - 0) * (x - 0))
80-
return y
79+
return x**2
8180

8281

8382
def main():

0 commit comments

Comments
 (0)