|[ << ]||[ < ]||[ Up ]||[ > ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
Run Asir, then the copyright notice and the first prompt will appear on your screen, and a new Asir session will be started.
When initialization file ‘$HOME/.asirrc’ exists, Asir interpreter executes it at first taking it as a program file written in Asir.
The prompt indicates the sequential number of your input commands to
The session will terminate when you input
Input commands are evaluated statement by statement.
A statement normally ends with its terminator
‘;’ or ‘$’.
(There are some exceptions. See, syntax of Asir.)
The result will be displayed when the command, i.e. statement,
is terminated by a ‘;’,
and will not when terminated by a ‘$’.
% asir  A; 0  A=(x+y)^5; x^5+5*y*x^4+10*y^2*x^3+10*y^3*x^2+5*y^4*x+y^5  A; x^5+5*y*x^4+10*y^2*x^3+10*y^3*x^2+5*y^4*x+y^5  a=(x+y)^5; evalpv : invalid assignment return to toplevel  a; a  fctr(A); [[1,1],[x+y,5]]  quit; %
In the above example, names
are used to identify mathematical and programming objects.
There, the name
A denotes a program variable
(some times called simply as a program variable.)
while the other names,
mathematical objects, that is, indeterminates.
In general, program variables have names which begin with
capital letters, while names of indeterminates begin with
As you can see in the example, program variables are used to hold and
keep objects, such as numbers and expressions, as their values,
just like variables in C programming language.
Whereas, indeterminates cannot have values so that assignment to
indeterminates are illegal.
If one wants to get a result by substituting a value for an indeterminate
in an expression, it is achieved by the function
subst as the
value of the function.
|[ << ]||[ < ]||[ Up ]||[ > ]||[ >> ]|
This document was generated on October 23, 2017 using texi2html 5.0.