|
SOLUTIONS
|
MATHEMATICA 内置符号
Input
Input[]
在一个 Mathematica 表达式中交互读入.
Input[prompt]
提示输入,显示 prompt 为一个 " 提示符".
Input[prompt, init]
在笔记本前端用 init 作为输入域的初始内容.
更多信息更多信息
- Input 返回它读入的表达式.
- 在不同计算机系统中,Input 的运算可能不同,当在一个 Mathematica 前端调用时,Input 通常产生一个对话框.
- 当没有使用前端时,Input 从标准输入读入字符串.
- 如果标准输入是一个文件,当您读到文件尾,则 Input 返回 EndOfFile.
- 在文本输入的系统中,Input[] 用
作为一个提示符. - 当计算 Input 时,Mathematica 停止计算直到读取输入.
- 在一个笔记本前端,默认情况下 Input 出现一个具有标准外观的对话框.
- 给出的提示可以是文本、图形或其它表达式.
- Input 采用笔记本选项. 默认设置包括 WindowFloating->False、WindowSize->All 和 WindowTitle->None.
- 默认情况下,Input 在主显示屏中间显示一个对话框. 直接设置 WindowMargins 会屏蔽这个特点.
- 选项 FieldSize 可用来指定输入域的大小.
- Input[prompt] 等价于 Input[prompt, ""].
版本 1 的新功能 | 版本 6 修改功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


