English 中文(简体)
部分内部职能
原标题:Behavior of Part inside Function

以下是一些奇怪的“部分”警告。

Clear[f];
f = Function[{x}, x[[1]] == x[[2]]]

然而,如果我再次执行第二行,它就毫无警告地开展工作,任何想法都会发生什么?

最佳回答

你们是否确信? 我看不到第7.0.1版的任何警告:

In[1]:= Clear[f];
        f=Function[{x},x[[1]]==x[[2]]]

Out[2]= Function[{x},x[[1]]==x[[2]]]
问题回答

暂无回答




相关问题
Solving vector equations in Mathematica

I m trying to figure out how to use Mathematica to solve systems of equations where some of the variables and coefficients are vectors. A simple example would be something like where I know A, V, and ...

Introspection of messages generated in Mathematica

Is there any way to get at the actual messages generated during the evaluation of an expression in Mathematica? Say I m numerically solving an ODE and it blows up, like so In[1] := sol = NDSolve[{x [...

Connecting points in Mathematica

I have a collection of points displayed in a graphic: alt text http://img69.imageshack.us/img69/874/plc1k1lrqynuyshgrdegvfy.jpg I d like to know if there is any command that will connect them ...

Mathematica, PDF Curves and Shading

I need to plot a normal distribution and then shade some specific region of it. Right now I m doing this by creating a plot of the distribution and overlaying it with a RegionPlot. This is pretty ...

Targeted Simplify in Mathematica

I generate very long and complex analytic expressions of the general form: (...something not so complex...)(...ditto...)(...ditto...)...lots... When I try to use Simplify, Mathematica grinds to a ...

热门标签