From e8fc1c17d91046fa8b7444dc16e926d2f5a6facf Mon Sep 17 00:00:00 2001 From: James Cherry Date: Sat, 27 Jan 2024 16:12:53 -0700 Subject: [PATCH] FindRoot headers Signed-off-by: James Cherry --- dcalc/FindRoot.cc | 4 ++++ dcalc/FindRoot.hh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dcalc/FindRoot.cc b/dcalc/FindRoot.cc index ad96796c..a6bdde60 100644 --- a/dcalc/FindRoot.cc +++ b/dcalc/FindRoot.cc @@ -16,8 +16,12 @@ #include "FindRoot.hh" +#include // abs + namespace sta { +using std::abs; + double findRoot(FindRootFunc func, double x1, diff --git a/dcalc/FindRoot.hh b/dcalc/FindRoot.hh index 2bc9a8eb..1a62df8b 100644 --- a/dcalc/FindRoot.hh +++ b/dcalc/FindRoot.hh @@ -16,7 +16,7 @@ #pragma once -#include // abs, min +#include namespace sta {