MathGroup Archive 1990

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

Search the Archive

Re: Problem with Function (there isn't any...)

  • To: mathgroup at
  • Subject: Re: Problem with Function (there isn't any...)
  • From: decide!bobk at uunet.UU.NET (Bob Korsan)
  • Date: Mon, 8 Oct 90 14:16:06 PDT

If you further define

In[1]:= h=Function[x,x + -x^2]

Out[1]:= Function[x, x- x^2]

In[2]:= h'[2]

Out[2]:= -3

The trick is that Subtract is not associative and hence

In[3]:= D[Funcion[x, x-x^2],x]

                             (1,0)     2            (0,1)    2
Out[3]:= Function[x, Subtract     [x, x ] + Subtract    [x, x  ] 2 x]

All in all, this is the reason why languages like APL have a different
symbol which is used for negation and for subtraction. They are different

Bob Korsan

  • Prev by Date: Gear method
  • Next by Date: On the Function problem
  • Previous by thread: Gear method
  • Next by thread: On the Function problem