Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7010

Re: Evaluate[expr]

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Evaluate[expr]
Date 2011-12-08 10:26 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jbq3c5$iib$1@smc.vnet.net> (permalink)

Show all headers | View raw


On 12/7/11 at 6:14 AM, shlwell1988@gmail.com wrote:

>f[x_] = x^5 - 3 x^2 + 1; tt =
>Table[Evaluate[{{x}, f[x], D[f[x], x]}], {x, 0, 2, 0.3}]

>In the above expression , what's the function of Evaluate[expr]?

>Why doesn't it work without Evaluate[expr]?

Evaluate forces immediate evaluation of any expression it is
given. Without Evaluate, a value is assigned to x then the
derivative you want is computed. That is, when x is zero,
D[f[x],x] evaluates to D[f[0],0] which makes no sense.

With Evaluate D[f[x],x] is evaluated to 5x^4-6x and this is
evaluated after x is assigned a value which is what you want.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Evaluate[expr] Bill Rowe <readnews@sbcglobal.net> - 2011-12-08 10:26 +0000

csiph-web