# Cambridge Chat (previously New Cambridge Students Entry 2004)

Scroll to see replies

if you want to be really lame then declare the returned function in a "let" statement within the nfold function, then just return that function:

let fun p (f, n) x = p(f(f, n-1) x)
in
p (f,n)
end;

something along those lines....you figure it out!
You are much better than me when it comes to cook curry...
Willa

you want:

fun nfold(f, 0) x = x
| nfold(f, n) = f(nfold(f, n-1) x)

curry it damn it!

Hmm. Thanks Will. It's odd, 'cos I kept re-reading it, and it said a function that returns functions. It didn't occur to me that a function that returned the values would return the function if you left the last argument off. Balls.
i'm hopeless at this discrete maths stuff...how do i go about formulating an equation for the sum of first n cubes?
look it up some where?
honest, discrete maths is too hard for me... I can cope with the first kind of induction, but after that... I'm all over the place with arguments.
no i dont want to cheat...i cant look it up in an exam!
Aaaaaaaaaaaaaaaaaaaaaagh have to give presentation on colour processing in the visual system and I don't understand it at all I can say all the words but I've no idea what they mean - bah, stupid stupid neuro And supervision will be taken up by five (yes five!) presentations so how am I supposed to find out what it's all about?!

Medics - you didn't cover this at all by any chance, did you? Even Carpenter's book isn't helping me...
Willa
no i dont want to cheat...i cant look it up in an exam!

Haha, we can.
Willa
no i dont want to cheat...i cant look it up in an exam!

See? We are doing the wrong subject.

tell you what to do. Write down the sums for n = 1 to 5. Notice that these sums are squares. Write the sums as squares. Now, notice further that these squares are in fact squares of triangle numbers. Now you have the formula. Now go and prove it right!
n=5 isnt a square is it?
I'm going to cook pasta. Then I shall bugger off to god knows which planets in the unverse to do maths. As for which maths I'll be doing? It'll be whichever one I am buggered off to.
oh yeah you're right...i'm an idiot with my calculator
Willa
n=5 isnt a square is it?

FGS! n = 5 means five terms. i.e. 1 + 8 + 27 + 64 + 125 = 225 = 15^2 = (5(1+5)/2)^2.

EDIT: A ted bit late on the fingers there... obviously that's what you get after 20 minutes of mindless gaming in which millions of pixels made up pictures have been shattered. Disclaimer, no individual pixel has been violently murdered during process. It may have been harmed, but that's the TFT manufacturer's fault.
Aaaaaaaaaaaaaaaaaaaaaagh have to give presentation on colour processing in the visual system and I don't understand it at all I can say all the words but I've no idea what they mean - bah, stupid stupid neuro And supervision will be taken up by five (yes five!) presentations so how am I supposed to find out what it's all about?!

Medics - you didn't cover this at all by any chance, did you? Even Carpenter's book isn't helping me...

nope, i know for a fact that core neuro course for medics does not cover much on colour processing, aside from cones being of 3 separate types... i'm not so sure about neuro option (SNB) though, they might cover more...

try kandel, schwartz, et al. Principles of Neural Science. really thick, generally considered overly detailed, but if you're desperate, and there isn't any info in Carpenter... all our neuro lecturers seem to think that Kandel & Schwartz is the final word in neuro texts.
Go priya go!!!

hehehehehehehehehehehe
KHL
nope, i know for a fact that core neuro course for medics does not cover much on colour processing, aside from cones being of 3 separate types... i'm not so sure about neuro option (SNB) though, they might cover more...

try kandel, schwartz, et al. Principles of Neural Science. really thick, generally considered overly detailed, but if you're desperate, and there isn't any info in Carpenter... all our neuro lecturers seem to think that Kandel & Schwartz is the final word in neuro texts.

Awww, thanks.. I think I must be really odd, cos I don't get on very well with Carpenter's style but everyone else seems to rave about him! Kandel here I come
la la la la la la la colour processing sounds... fun... although more fun than all the discrete maths that's flying about in this thread Hmm I wonder what happens in the brain when someone's colour blind??