summaryrefslogtreecommitdiff
path: root/content/math/simpson.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'content/math/simpson.cpp')
-rw-r--r--content/math/simpson.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/math/simpson.cpp b/content/math/simpson.cpp
index 7f237a4..da9c002 100644
--- a/content/math/simpson.cpp
+++ b/content/math/simpson.cpp
@@ -1,4 +1,4 @@
-//double f(double x) {return x;}
+//double f(double x) { return x; }
double simps(double a, double b) {
return (f(a) + 4.0 * f((a + b) / 2.0) + f(b)) * (b - a) / 6.0;