Or login with:
| doublelog_binomial( | int | n | |
| int | k | )[inline] |
#include <codecogs/maths/combinatorics/arithmetic/log_binomial.h> #include <iostream> #include <iomanip> int main() { std::cout << std::setprecision(10); for (int i = 70; i <= 80; i++) { std::cout << "log_binomial(100, " << i << ") = "; std::cout << Maths::Combinatorics::Arithmetic::log_binomial(100, i); std::cout << std::endl; } return 0; }
log_binomial(100, 70) = 58.64209564 log_binomial(100, 71) = 57.78061315 log_binomial(100, 72) = 56.87124286 log_binomial(100, 73) = 55.91298793 log_binomial(100, 74) = 54.9047597 log_binomial(100, 75) = 53.84536812 log_binomial(100, 76) = 52.73351061 log_binomial(100, 77) = 51.56775902 log_binomial(100, 78) = 50.34654441 log_binomial(100, 79) = 49.06813901 log_binomial(100, 80) = 47.73063481
| n | the first argument of the binomial coefficient (the number of objects) |
| k | the second argument of the binomial coefficient (the number of choices) |
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
You must login to leave a messge