Skip to main content
added 2 characters in body
Source Link
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 (that'swhich is a pointer to an uninitialized float).

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 (that's a pointer to an uninitialized float).

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).

added 18 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46

C (gcc), 66 5966 59 54 bytes

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

Try it online!Try it online!

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

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).

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 (that's a pointer to an uninitialized float).

added 79 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46

C (gcc), 6666 59 bytes

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

Try it online!Try it online!

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

C (gcc), 66 bytes

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

Try it online!

Calculates the given formula. Returns a float.

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).

deleted 11 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46
Loading
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46
Loading