MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Block and Module

  • To: mathgroup at
  • Subject: [mg15157] Re: Block and Module
  • From: "A.ODA" <a-oda at>
  • Date: Wed, 16 Dec 1998 03:11:28 -0500
  • Organization: BIGLOBE dial-up user
  • References: <74tce8$>
  • Sender: owner-wri-mathgroup at

David Epstein wrote in message <74tce8$4vs at>...
>Could someone explain what the difference is between Block and Module? A
>couple of easy examples would help, rather than a long theoretical
>David Epstein


Try these two examples.

ex. 1


The ex.1 will stop by "Unknown option" but ex.2 will work as you

"Module" assigns new address for local variable, so the actual name of
the variable in ex.1 is PlotRange$1 or $number. However, "Block" simply
save  and retrieve value of variable in the first argument. Usually,
Module and Block work same, unless you use some global variables. Most
useful technique of Block is temporal change for some global variables
which affects system defaults like RecursionLimits.

A.ODA <a-oda at>
Kawasaki, JAPAN

  • Prev by Date: Re: Q: Linearization
  • Next by Date: Re: Global max for a nonlinear function
  • Previous by thread: Re: Block and Module
  • Next by thread: Output Leading up To Answer?