krycek
11-18-2002, 01:04 AM
I cannot remember the difference between arithmetic and geometric progressions... I did them in Further Maths a few years ago, but I forgot since (lol!)
I need to tell the computer to calculate n * n-1 * n-2 * n-3 etc. ... I am not sure if I am writing that correctly, but I want:
if n=5, then 5*4*3*2*1
if n=1473, then 1473*1472*1471*1470*... ...*5*4*3*2*1
I expect there is a better way to express that, but I do not know what it is (I forgot all except the easier maths since leaving college!)
I think that stuff is also tied in with nCr and nPr... does anyone know how I can do nCr and nPr in JS???
Cheers! :D
::] krycek [::
I need to tell the computer to calculate n * n-1 * n-2 * n-3 etc. ... I am not sure if I am writing that correctly, but I want:
if n=5, then 5*4*3*2*1
if n=1473, then 1473*1472*1471*1470*... ...*5*4*3*2*1
I expect there is a better way to express that, but I do not know what it is (I forgot all except the easier maths since leaving college!)
I think that stuff is also tied in with nCr and nPr... does anyone know how I can do nCr and nPr in JS???
Cheers! :D
::] krycek [::