The Expression
Parser Step
1
Here
you enter the
expression to parse.
You don't need to write the complete name-package of the templates
and matrices that compose the expression: only the name in any letter
case is enough.
Templates and matrices that are part
of the expression must exist before the parser window has been
opened.
As told before, the parameters must be
written between quotes, like in the expression:
fill(“10”,
“10”, “5”)
which
fills a 10x10 matrix
with the
number 5.
In case the template has a result of
type ANY, like in template fill
of the example, the actual return
type will be requested in one of the next steps.
Operators
From version 1.1 the
expression can also contain operators.
So,
for example, instead of the expression:
plus(matrix1,
matrix2)
you can write:
matrix1 +
matrix2
The expression parser will convert the
operators to the related functions:
- + to
plus
- - to minus
- * to times
- /
to divide
- ^ to pow
If
you don't remember the name of the
matrices or templates you want to enter in the expression, the Insert
template and Insert Matrix buttons can help you:
- Insert Template
lets you select a template from the template
selection dialog.
Then,
the template is inserted at the cursor in the expression in the
following form:
<template>(<input
matrix1>..., <input matrixN>,
“<parameter1>”,...”<parameterN>”)
where
<template> is the template name-package, <input
matrixI> is the definition's name of the matrix I in the
template, <parameterI> is the definition's name of the
parameter I in the template.
You need to substitute the
matrices and parameter definition's names with real matrices and
parameters values.
- Insert
Matrix lets you select a matrix in the matrix
selection
dialog.
Then, the matrix name-package is inserted at
the
cursor in the expression.
Once the
expression you want to
enter is complete click on the Next button and go
to step
2.