Skip to main content
5 of 5
added 2 characters in body
Noodle9
  • 20.3k
  • 3
  • 21
  • 46

C (gcc), 66 59 54 bytes

f(a,n,p,r)float*r,n;{for(*r=1;p--;)*r*=(a-p)/(a-p/n);}

Try it online!

Calculates the given formula. Returns a float through its last parameter (which is a pointer to an uninitialized float).

Noodle9
  • 20.3k
  • 3
  • 21
  • 46