You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used Python's built-in math.factorial (imported locally) instead of np.math.factorial since the latter is deprecated/removed in recent NumPy versions — this keeps the code future-proof while producing identical results.