Skip to content

Commit

Permalink
Fix issue tranleduy2000#84: Permutation result is not right
Browse files Browse the repository at this point in the history
  • Loading branch information
PAUL-Zf committed Apr 18, 2021
1 parent e2406a1 commit 4f49d51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public ArrayList<String> execute(String input) {
if (type == TYPE_PERMUTATION) {
// ( Gamma(#+1) / Gamm(#2+1) )&
function = F.Function( //
F.Divide(F.Gamma(F.Plus(F.C1,F.Slot1)),F.Gamma(F.Plus(F.C1,F.Slot2))) //
F.Divide(F.Gamma(F.Plus(F.C1,F.Slot1)),F.Gamma(F.Subtract(F.Plus(F.C3, F.Slot1),F.Plus(F.C2,F.Slot2))))//
);
}
String fraction = MathEvaluator.getInstance().evaluateWithResultAsTex(
Expand Down

0 comments on commit 4f49d51

Please sign in to comment.