3. Expressions, operations, operands

Maple distinguishes the concept of function, command, and operator.

An expression is a combination of names of variables, numbers, and other objects connected by symbols of permissible operations. Operators are used to record expressions, for example, adding +, subtraction, multiplication, division, assignment, equality, and others.

The introduction of expressions (questions) is set according to the rules of the editorial editor. The sign of the end of the expression is a semicolon, which indicates the output of the monitor. The two-dot sign cancels the output and can be used to write multiple expressions in one line.

Operations determine actions over operands - constants, variables, or character strings.

Each operand has a type.

Operands can be combined with operations in the original expressions, which in turn become operands. Their combination leads to the formation of more complex expressions, etc.

There are three types of expressions:

  • mathematical - the result of the expression is the number;
  • text - the result is a string of characters;
  • logical - the result is the statement "yes" or "no".

Depending on the type of operations, the expressions are divided into primary, unary, binary, ternary, assignment, and type according to the number of operators in this expression. Assigning is an expression.

Character action:

: a lock of the expression that prevents the output of the calculation result in a string;

; lock of the expression, which forms the output of the calculation result in a separate line;

# comment pointer;

: = assignment operator;

'variable limiter, which prevents previous data from being used;

% returns the last result of the calculation.

Priority affects the order in which operations are calculated in expressions

Operations

The name is

() [] ->

primary

* /

multiplicative

+ -

additive

<<=> =

relation

: =

appropriation

Accessibility

Font Face Font Face

Font Size Font Size

1

Text Colour Text Colour

Background Colour Background Colour

Font Kerning Font Kerning

Image Visibility Image Visibility

Letter Spacing Letter Spacing

0

Line Height Line Height

1.2

Link Highlight Link Highlight