MathGroup Archive 2009

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

Search the Archive

Re: differentiation operator



Hi Chee,

I did not thoroughly test it, but if you define:

$Pre = # /. Times[ d expr_  Power[dx, -1]] :> D[expr, x] &

the following examples work:

d/dx x^2 -> 2x

d/dx Sin[x] -> Cos[x]

d/dx (x-x^3) -> 1-3x^2

e.t.c

Daniel



Chee Lim Cheung wrote:

> Hi All

> 

> My students have asked me whether it is possible to define the operator

> df[x]/dx for differentiation rather than D[f[x],x]. The operator is

> available in a palette but it does not seem to do anything other than for

> display only.

> 

> Example: d/dx(x^2)=2x rather than D[x^2,x]=2x.

> 

> Am I missing something?

> 

> Thanks

> Mr. Chee

> 




  • Prev by Date: Re: differentiation operator
  • Next by Date: Re: differentiation operator
  • Previous by thread: Re: differentiation operator
  • Next by thread: Re: Re: differentiation operator