MathGroup Archive 2009

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

Search the Archive

Re: procedures

No clue what you're trying to do.

D is a built-in symbol for differentiation, so you can't write


Even if you could, what could


possibly accomplish, since both arguments to Set are the same?

Beyond that, there's no construct like

function[anything] {anything else}

And the list goes on.


On Fri, 27 Feb 2009 05:16:38 -0600, <ventutech at> wrote:

> Simple question:
> how can I in mathematica write a complex function?
> 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]
> }
> Thanks!
> Davide

DrMajorBob at

  • Prev by Date: Re: question about simplify function
  • Next by Date: Re: procedures
  • Previous by thread: procedures
  • Next by thread: Re: procedures