mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-22 01:02:04 +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)
|
>>> f(0.5)
|
||||||
0.25
|
0.25
|
||||||
"""
|
"""
|
||||||
y = float((x - 0) * (x - 0))
|
return x**2
|
||||||
return y
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user