Update maths/trapezoidal_rule.py

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
Julien Richard 2024-10-06 14:23:28 +02:00 committed by GitHub
parent 9190304498
commit 2409e252c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,8 +76,7 @@ def f(x):
>>> f(0.5) >>> f(0.5)
0.25 0.25
""" """
y = float((x - 0) * (x - 0)) return x**2
return y
def main(): def main():