12.4.2012 18:48, Kiuhnm kirjoitti: > On 4/11/2012 16:01, Antti J Ylikoski wrote: >> On 9.4.2012 21:57, Kiuhnm wrote: >>> Do you have some real or realistic (but easy and self-contained) >>> examples when you had to define a (multi-statement) function and pass it >>> to another function? >>> Thank you. >>>>>> Kiuhnm >>>> A function to numerically integrate another function comes as follows: > [...] >> Thank you. >> Kiuhnm Ref: numerical integration, one of the most famous methods probably is the Romberg method: http://en.wikipedia.org/wiki/Romberg%27s_method the program in the Wikipedia article above is in C, but translating it into Python would be very, very easy. yours, Antti J Ylikoski Helsinki, Finland, the EU http://www.tkk.fi/~ajy/ http://www.tkk.fi/~ajy/diss.pdf antti.ylikoski at gmail.com