MathGroup Archive 2004

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

Search the Archive

Long function defintions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49654] Long function defintions
  • From: aaronfude at yahoo.com (Aaron Fude)
  • Date: Mon, 26 Jul 2004 04:01:58 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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