Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

LISP

Name: Anonymous 2009-12-01 13:59

hey /prog, could you guys help me with assignment. I need to write a program in Lisp that does
Π((k-a)/(k+a))=((1-a)/(1+a))*((2-a)/(2+a))*...*((n-a)/(n+a)), k=1..n
k, a are read from stdin

Name: Anonymous 2009-12-01 16:48

(-1)^k  * (a! * (a-1)!)/((a+k)! * k!)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List