MathGroup Archive 2009

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

Search the Archive

Re: procedures

  • To: mathgroup at
  • Subject: [mg96980] Re: [mg96937] procedures
  • From: Sseziwa Mukasa <mukasa at>
  • Date: Sat, 28 Feb 2009 06:45:54 -0500 (EST)
  • References: <>

On Feb 27, 2009, at 6:16 AM, ventutech at wrote:

> Simple question:

Unfortunately no simple answer.

> how can I in mathematica write a complex function?

What do you mean by complex.

> What I need to do is (pseudocode)
> FunctionToCode[x,n] {
> D[x_,n]:= something symbolic
> Do[ D[x,s]=D[x,s], {s,0,n} ];
> return D[x,s]
> Clear[D]
> }

Your meaning is not clear, D[x_,n] defines a function for a fixed  
variable n, I think you meant D[x_,n_].  Secondly is D supposed to  
have side effects?  What is the purpose of assigning its value to  
itself?  Third, s only has value within the Do loop, do you mean to  
return D[x,n]?  Fourth, why clear D?  In short the pseudocode raises  
more questions than one could answer.

Best Regards,

Sseziwa Mukasa

  • Prev by Date: Re: procedures
  • Next by Date: Re: Exporting data into a file, OpenWrite
  • Previous by thread: Re: procedures
  • Next by thread: Re: procedures