MathGroup Archive 2004

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

Search the Archive

Long function defintions


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: Fibonacci [5,000,000] contains 1044938 decimal digits
  • Next by Date: Re: If-statement problems
  • Previous by thread: Re: Fibonacci [5,000,000] contains 1044938 decimal digits
  • Next by thread: Re: Long function defintions