From 2409e252c8555bf4bcaf261636211447f54c0a2a Mon Sep 17 00:00:00 2001 From: Julien Richard Date: Sun, 6 Oct 2024 14:23:28 +0200 Subject: [PATCH] Update maths/trapezoidal_rule.py Co-authored-by: Tianyi Zheng --- maths/trapezoidal_rule.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/maths/trapezoidal_rule.py b/maths/trapezoidal_rule.py index 35306259b..8e044eede 100644 --- a/maths/trapezoidal_rule.py +++ b/maths/trapezoidal_rule.py @@ -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():