numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
pow.h File Reference

Definition of pow function. More...

+ Include dependency graph for pow.h:

Go to the source code of this file.

Namespaces

namespace  num_collect
 Namespace of num_collect source codes.
 
namespace  num_collect::constants
 Namespace of constexpr variables and functions.
 

Functions

template<typename B , typename E , std::enable_if_t< std::is_integral_v< E >, void * > = nullptr>
constexpr auto num_collect::constants::pow (B base, E exp) -> B
 Calculate power \( {base}^{exp} \).
 
template<typename T , std::enable_if_t< std::is_floating_point_v< T >, void * > = nullptr>
constexpr auto num_collect::constants::pow (T base, T exp) -> T
 Calculate power \( {base}^{exp} \).
 

Detailed Description

Definition of pow function.

Definition in file pow.h.