Talk:Procedural parameter

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Disk integral example[edit]

The disk integral example seems to be chopped up, or how do I have to understand a procedure in a procedure in a procedure? Thanks, --Abdull (talk) 11:51, 26 July 2008 (UTC)[reply]

That is the precisely the point. The outer procedure "DiskIntg" computes the integral over the disk. The middle procedure "gring" computes the integral over a ring. The innermost procedure "gpolar" converts polar to Cartesiam coordinates and calls the function to be integrated. Note that "gring" must be defined inside "DiskIntg" because it depends on the argument "R" (without "intgr" knowing it). And "gpolar" must be defined inside "gring" because it depends on the argument "z" (ditto). All the best, --Jorge Stolfi (talk) 13:57, 17 August 2009 (UTC)[reply]