MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to read in interactive data


In article <4oberp$na9 at dragonfly.wolfram.com>, rpiyaket at ucsd.edu (Ram
Piyaket) wrote:

> Hi there,
> I was wondering if anyone could tell me how to tell MMA to
> prompt for numeric input. I know that you can read in 
> string with "InputString" command. What about numbers?
> Any help is greatly appreciated...
> 
> Ram


The corresponding command for input of Mathematica expressions, 
including numbers, is Input. The syntax is the same as for 
InputString.


In[1]:=
    ?Input
    Input[ ] interactively reads in one Mathematica expression.
       Input["prompt"] requests input, using the specified string
       as a prompt.

In[2]:=
    ?InputString
    InputString[ ] interactively reads in a character string.
       InputString["prompt"] requests input, using the specified
       string as a prompt.

I hope this helps.

--Ian

-----------------------------------------------------------
Ian Collier
Wolfram Research, Inc.
-----------------------------------------------------------
tel:(217) 398-0700   fax:(217) 398-0747    ianc at wolfram.com
Wolfram Research Home Page:         http://www.wolfram.com/
-----------------------------------------------------------

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Printing of Notebooks
  • Next by Date: Dirac Delta Function
  • Previous by thread: How to read in interactive data
  • Next by thread: No ListPlot points shown