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

C (gcc), 66 59 bytes

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

Try it online!

Calculates the given formula. Returns a float through its last parameter (that's a pointer to an uninitialized float).

Noodle9
  • 20.3k
  • 3
  • 21
  • 46