Jump to content

Talk:Procedural parameter

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Qwerfjkl (bot) (talk | contribs) at 16:14, 27 January 2024 (Implementing WP:PIQA (Task 26)). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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]