rokojori_action_library/Runtime/Math/BinomialCoefficient.cs

19 lines
322 B
C#
Raw Normal View History

2024-11-12 08:03:36 +00:00
using System.Collections;
using System.Collections.Generic;
using Godot;
2026-05-22 12:25:02 +00:00
using Rokojori.Extensions;
2024-11-12 08:03:36 +00:00
namespace Rokojori
{
public class BinomoalCoefficent
{
public static float Compute( int n, int k )
{
return MathX.Factorial( n ) / ( MathX.Factorial( k ) * MathX.Factorial( n - k ) );
}
}
}