
input - interactive input of MuPAD expressions

Calling sequence:
input(expr ...)
input()

Parameter:

expr   --  character string or identifier

Summary:

input permits interactive requesting of values of indentifiers. The parameters
of input can be any series of character stringsand identifiers. The character
strings are displayed in sequence; for each identifier an input prompt in form
of a prompt character is given. Here the user can enter a MuPAD expression.
This is then assigned to the identifier without the expression being evaluated.
The return value of input is the last expression entered by the user.

If input is called without arguments then only a prompt is given. The input
of an expression is expected. This is then the return value.

Input must occur exactly as on the interactivelevel. The input of an expression
can be more than one line long. Input is only complete when the expression
is syntactically complete. Additionally, the expression must be closed with a
semicolon or colon.

Thus, with input("Input x:", x) firstly the text "Inputaend the prompt

''>>`` appear.  Then the user can enter an expression for x, e.g.
12;.  The return value is the value given by the user:  12.

The parameters of input are not evaluated.  input is a kernel function.

>>  input("Input degree ", deg);

      Input degree >>2;

>>  input("x ? ", x, "y ? ", y);

      x ? >>1.2;

      y ? >>3*x;

>>  a:=input();

      >>"test":

See also:  textinput

