I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
get GPL
COST (GBP)
this unit 0.05
sub units 0.00
+
0

Rising Factorial

Calculates the rising factorial with arguments \e x and \e n.
Controller: CodeCogs

Interface

C++

Rising Factorial

 
doublerising_factorialdoublex
intn )
The rising factorial has the following formula

Note that the number of ways of arranging n objects in m ordered boxes is \inline  [m]^n. (Here, the ordering in each box matters). Thus, 2 objects in 2 boxes have the following 6 possible arrangements:

Moreover, the number of non-decreasing maps from a set of n to a set of m ordered elements is \inline  [m]^n / n!. Thus the set of nondecreasing maps from \inline  (1,2,3) to \inline  (a,b,c,d) is the 20 elements:

Example:

#include <codecogs/maths/discrete/combinatorics/arithmetic/rising_factorial.h>
#include <iostream>
int main()
{
  std::cout << Maths::Combinatorics::Arithmetic::rising_factorial(5, 3) << std::endl;
  return 0;
}

Output:

210

References:

SUBSET, a C++ library of combinatorial routines, http://www.csit.fsu.edu/~burkardt/cpp_src/subset/subset.html

Parameters

xthe first rising factorial argument
nthe second falling factorial argument

Returns

the rising factorial of the pair of values x and n

Authors

Lucian Bentea (August 2005)
Source Code

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.