From 173246ce245588a3c5e30212165f124acda54299 Mon Sep 17 00:00:00 2001 From: AJ Iglesias Date: Fri, 1 Mar 2019 16:42:53 -0500 Subject: [PATCH] Started the Simpson's rule --- integration.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/integration.py b/integration.py index 17d68ad..62cd841 100644 --- a/integration.py +++ b/integration.py @@ -38,6 +38,17 @@ def trapezoid(f, a, b, n): def simpson_13(): +x = np.linsapce(a,b,n) +h = (b-a) / n + +summation = 0 + +for i in range n: + if(i