MathGroup Archive 2009

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

Search the Archive

Re: procedures

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96970] Re: [mg96937] procedures
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Sat, 28 Feb 2009 06:44:01 -0500 (EST)
  • References: <200902271116.GAA21679@smc.vnet.net>
  • Reply-to: drmajorbob at bigfoot.com

No clue what you're trying to do.

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

D[x,s]=(anything)

Even if you could, what could

D[x,s]=D[x,s]

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.

Bobby

On Fri, 27 Feb 2009 05:16:38 -0600, <ventutech at gmail.com> 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 bigfoot.com


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