【发布时间】:2011-02-17 09:18:22
【问题描述】:
当我尝试使用 In[-1] 在 Wolfram Mathematica 5.2 中获取最后一个输入表达式时,我得到了评估输出:
In[1]:= On[In]
2 + 2
In[-1]
Out[2]= 4
During evaluation of In[1]:= In::trace: In[-1] --> In[$Line-1]. >>
During evaluation of In[1]:= In::trace: In[$Line-1] --> In[2]. >>
During evaluation of In[1]:= In::trace: In[2] --> 2+2. >>
Out[3]= 4
如何获得未计算形式的输入表达式?
【问题讨论】:
-
我完全不知道您要使用哪种语言或程序来完成此任务。
-
@Michel 这是 Wolfram Mathematica 5.2。这是在标签中,现在在问题的标题和正文中。