PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Dynamic Interactivity
>
Custom Interface Construction
>
Dialog Boxes
>
Input
>
BUILT-IN MATHEMATICA SYMBOL
Requesting Input
Tutorials »
|
InputString
InputField
Import
Read
Get
Dialog
Button
ChoiceDialog
See Also »
|
Basic Input & Output in Programs
Custom Interface Construction
Dialog Boxes
Procedural Programming
More About »
Input
Input
interactively reads in one
Mathematica
expression.
Input
[
prompt
]
requests input, displaying
prompt
as a "prompt".
Input
in a notebook front end uses
init
as the initial contents of the input field.
MORE INFORMATION
Input
returns the expression it reads.
The operation of
Input
may vary from one computer system to another. When a
Mathematica
front end is used,
Input
typically works through a dialog box.
When no front end is used,
Input
reads from standard input.
If the standard input is a file, then
Input
returns
EndOfFile
if you try to read past the end of the file.
On systems with textual input,
Input
uses
as a prompt.
When
Input
is evaluated,
Mathematica
stops until the input has been read.
With a notebook front end,
Input
by default puts up a dialog window with a standard appearance.
The prompt given can be text, graphics or any expression.
Input
takes notebook options. The default settings include
WindowFloating
->
False
,
WindowSize
->
All
and
WindowTitle
->
None
.
Input
by default puts up a dialog in the middle of the main display screen. Explicit settings for
WindowMargins
override this.
The option
FieldSize
can be used to specify the size of the field used for input.
Input
[
prompt
]
is equivalent to
Input
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Get an input expression and square it:
Request input of a function to plot:
Get an input expression and square it:
In[1]:=
Out[1]=
Request input of a function to plot:
In[1]:=
Out[1]=
SEE ALSO
InputString
InputField
Import
Read
Get
Dialog
Button
ChoiceDialog
TUTORIALS
Requesting Input
MORE ABOUT
Basic Input & Output in Programs
Custom Interface Construction
Dialog Boxes
Procedural Programming
New in 1 | Last modified in 6