NTLib - Number Theory Library 0.9
Loading...
Searching...
No Matches
figurate_number Module Reference

Computes figurate numbers in two and three dimensions. More...

Functions

template<Integer T>
constexpr T ntlib::k_gonal_number (T k, T n) noexcept
 Computes the n-th k-gonal number.
template<Integer T>
constexpr T ntlib::centered_k_gonal_number (T k, T n) noexcept
 Computes the n-th centered k-gonal number.
template<Integer T>
constexpr T ntlib::cube_number (T n) noexcept
 Computes the n-th cube number.
template<Integer T>
constexpr T ntlib::octahedral_number (T n) noexcept
 Computes the n-th octahedral number.
template<Integer T>
constexpr T ntlib::dodecahedral_number (T n) noexcept
 Computes the n-th docecahedral number.
template<Integer T>
constexpr T ntlib::icosahedral_number (T n) noexcept
 Computes the n-th icosahedral number.
template<Integer T>
constexpr T ntlib::centered_tetrahedral_number (T n) noexcept
 Computes the n-th centered tetrahedral number.
template<Integer T>
constexpr T ntlib::centered_cube_number (T n) noexcept
 Computes the n-th centered cube number.
template<Integer T>
constexpr T ntlib::centered_octahedral_number (T n) noexcept
 Computes the n-th centered octahedral number.
template<Integer T>
constexpr T ntlib::centered_dodecahedral_number (T n) noexcept
 Computes the n-th centered dodecahedral number.
template<Integer T>
constexpr T ntlib::centered_icosahedral_number (T n) noexcept
 Computes the n-th centered icosahedral number.
template<Integer T>
constexpr T ntlib::k_gonal_pyramidal_number (T k, T n) noexcept
 Computes the n-th k-gonal pyramidal number.

Detailed Description

Computes figurate numbers in two and three dimensions.

Files

file  modules/combinatorics/figurate_number.cpp
 Primary module interface unit for module figurate_number.