Function root¶
function root(const T1 &, const T2 &) math¶
template <numeric T1, numeric T2>
KFR_FUNCTION flt_type<std::common_type_t<T1, T2>> root(const T1& x, const T2& y) Returns the real y-th root of x.
For odd integer y, root(-x, y) is the negative of root(x, y). For non-integer y the result is defined only for x >= 0.
| T1 | Type of the value x. |
| T2 | Type of the root degree y. |
| x | Value whose y-th root is computed. |
| y | Root degree. |
y-th root of x as flt_type<std::common_type_t<T1, T2>>. |
Fully qualified name: kfr::root(const T1 &, const T2 &)
Declared at math/log_exp.hpp:230
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.