Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6999
| From | Sebastian Hofer <sebhofer@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Evaluate[expr] |
| Date | 2011-12-08 10:22 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jbq34b$icu$1@smc.vnet.net> (permalink) |
| References | <jbni7r$48k$1@smc.vnet.net> |
As you can read in the manual: "Table effectively uses Block to localize values or variables."
If we try Block then we will find
In[41]:= Block[{x = 1}, {{x}, f[x], D[f[x], x]}]
During evaluation of In[41]:= General::ivar: 1 is not a valid variable. >>
Out[41]= {{1}, -1, \!\(
\*SubscriptBox[\(\[PartialD]\), \(1\)]\((\(-1\))\)\)},
which is essentially the same error message as for your original example. I think the produced output says it all: The symbol x is set to one and is thus not a valid variable for D[f[x], x] anymore.
In[42]:= x = 1; D[f[x], x]
will give the same.
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Evaluate[expr] 道 厚 <shlwell1988@gmail.com> - 2011-12-07 11:21 +0000 Re: Evaluate[expr] Sebastian Hofer <sebhofer@gmail.com> - 2011-12-08 10:22 +0000 Re: Evaluate[expr] "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-12-08 10:37 +0000
csiph-web