I want to get the factorial value of a number. I read in a wiki that I can expect the result of 5! to be 5x4x3x2x1 = 120. Now how can I get that in Java?
BigFraction g = new BigFraction(5);
System.out.println(g.getNumerator());
This prints just 5.
In the end i want to calculate combinations in a network:
Which has the following formula: