MathGroup Archive 2004

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

Search the Archive

Re: Long function defintions


Read the documentation and help files for Module[] and Block[].  That 
should get you started.

Mark Westwood

Aaron Fude wrote:
> Hi,
> How do you define a function with a very long body and a bunch of
> intermediate results. For example
> f[x_] := 
> y = (Do some long integration)
> z = (solve an ode which depends on the value of y)
> t = (do another long integration)
> assign (y + z + t) to f!!!
> The idea is that a function is best read if it is broken up but the
> parts are not important enough to be made into their own functions.
> Thanks!
> Aaron

  • Prev by Date: Re: Q: extract all k-tuple from a list of n elements
  • Next by Date: RE: Long function defintions
  • Previous by thread: Re: Long function defintions
  • Next by thread: RE: Long function defintions