From ca0a0a266a4871bb3a1667557f238c64e8325316 Mon Sep 17 00:00:00 2001
From: Maximilian Reininghaus <maximilian.reininghaus@tu-dortmund.de>
Date: Thu, 22 Apr 2021 15:29:11 +0200
Subject: [PATCH] replace pow(x, 0.5) with sqrt(x) in quantity.hpp

---
 corsika/framework/units/quantity.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/corsika/framework/units/quantity.hpp b/corsika/framework/units/quantity.hpp
index 3e897cfc8..5430fa398 100644
--- a/corsika/framework/units/quantity.hpp
+++ b/corsika/framework/units/quantity.hpp
@@ -676,7 +676,7 @@ namespace phys {
       static_assert(detail::root<D, 2, X>::all_even_multiples,
                     "root result dimensions must be integral");
 
-      return detail::Root<D, 2, X>(std::pow(x.m_value, X(1.0) / 2));
+      return detail::Root<D, 2, X>(std::sqrt(x.m_value));
     }
 
     // Comparison operators
-- 
GitLab