IAP GITLAB

Skip to content
Snippets Groups Projects
Commit ca0a0a26 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

replace pow(x, 0.5) with sqrt(x) in quantity.hpp

parent ae6c0ada
No related branches found
No related tags found
No related merge requests found
...@@ -676,7 +676,7 @@ namespace phys { ...@@ -676,7 +676,7 @@ namespace phys {
static_assert(detail::root<D, 2, X>::all_even_multiples, static_assert(detail::root<D, 2, X>::all_even_multiples,
"root result dimensions must be integral"); "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 // Comparison operators
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment