Hey there! Sign in to join this conversationNew here? Join for free
x Turn on thread page Beta
    Offline

    0
    ReputationRep:
    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!
    Offline

    1
    ReputationRep:
    You are much better than me when it comes to cook curry...
    Offline

    0
    ReputationRep:
    (Original post by 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.
    Offline

    0
    ReputationRep:
    i'm hopeless at this discrete maths stuff...how do i go about formulating an equation for the sum of first n cubes?
    Offline

    1
    ReputationRep:
    look it up some where?
    Offline

    1
    ReputationRep:
    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.
    Offline

    0
    ReputationRep:
    no i dont want to cheat...i cant look it up in an exam!
    Offline

    12
    ReputationRep:
    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...
    Offline

    2
    ReputationRep:
    (Original post by Willa)
    no i dont want to cheat...i cant look it up in an exam!
    Haha, we can.
    Offline

    1
    ReputationRep:
    (Original post by 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!
    Offline

    0
    ReputationRep:
    n=5 isnt a square is it?
    Offline

    1
    ReputationRep:
    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.
    Offline

    0
    ReputationRep:
    oh yeah you're right...i'm an idiot with my calculator
    Offline

    1
    ReputationRep:
    (Original post by 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.
    Offline

    0
    ReputationRep:
    (Original post by MadNatSci)
    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. :rolleyes:
    Offline

    12
    ReputationRep:
    Go priya go!!!

    hehehehehehehehehehehe
    Offline

    12
    ReputationRep:
    (Original post by 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. :rolleyes:
    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
    Offline

    2
    ReputationRep:
    la la la la la la la colour processing sounds... fun... :rolleyes: 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?? :confused:

    MadNatSci hope your presentation goes well!
    Offline

    12
    ReputationRep:
    Thanks I survived, anyway. Although the rest of my supervision group are now aware that I'm thick Ah well, had to happen at some point!
    Offline

    2
    ReputationRep:
    Aww you're not thick! Glad you survived anyway! You could be that tiger in disguise who SEEMS to do badly then come out with a first honours!!! - ahh I hope I survive my interviews, my first one is next week at Bristol eeeeek :eek:
 
 
 
Poll
Are you going to a festival?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.