mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-21 08:42:03 +00:00
Update maths/trapezoidal_rule.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
parent
9190304498
commit
2409e252c8
|
@ -76,8 +76,7 @@ def f(x):
|
|||
>>> f(0.5)
|
||||
0.25
|
||||
"""
|
||||
y = float((x - 0) * (x - 0))
|
||||
return y
|
||||
return x**2
|
||||
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in New Issue
Block a user