TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Program to calculate Binomial coefficients More...
#include <cassert>
#include <cstdint>
#include <cstdlib>
#include <iostream>
Go to the source code of this file.
Namespaces | |
namespace | math |
for assert | |
namespace | binomial |
Functions for Binomial coefficients implementation. | |
Functions | |
size_t | math::binomial::calculate (int32_t n, int32_t k) |
Function to calculate binomial coefficients. | |
static void | tests () |
Test implementations. | |
int | main (int argc, const char *argv[]) |
Main function. | |
Program to calculate Binomial coefficients
Definition in file binomial_calculate.cpp.
size_t math::binomial::calculate | ( | int32_t | n, |
int32_t | k ) |
Function to calculate binomial coefficients.
n | first value |
k | second value |
Definition at line 32 of file binomial_calculate.cpp.
int main | ( | int | argc, |
const char * | argv[] ) |
Main function.
argc | commandline argument count |
argv | commandline array of arguments |
Definition at line 79 of file binomial_calculate.cpp.
|
static |
Test implementations.
Definition at line 56 of file binomial_calculate.cpp.