Matrix Elements VB-800 Bedienungsanleitung Seite 138

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 172
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 137
130 Appendix A6 OxGauss Language Reference
(not both). A hexadecimal double constant is written as 0vhhhhhhhhhhhhhhhh.The
format used is an 8 byte IEEE real. The hexadecimal string is written with the most
significant byte first (the sign and exponent are on the left). If any hexadecimal digits
are missing, the string is left padded with 0’s.
Note that most numbers which can be expressed exactly in decimal notation, cannot
be represented exactly on the computer, which uses binary notation.
A6.3.4 Matrix constants
A matrix constant lists within { and } the elements of the matrix, row by row. Each row
is delimited by a comma, successive elements in a row are separated by a space. For
example:
{ 11 12 13, 21 22 23 }
which is a 2 × 3 matrix:
11 12 13
21 22 23
Elements in a matrix constant can only be an integer or double constant. No
expressions are allowed. To indicate complex numbers, write:
complex-constant:
sign
opt
real-part sign complex-part i
sign
opt
real-part sign complex-part
sign
opt
complex-parti
sign one of:
+-
without spaces.
A dot may be used in a matrix constant to indicate a missing value. This has a
double value NaN (Not a Number).
In some contexts (declare, let), the braces surrounding the matrix constant are
optional. This is indicated as: vector-constant, because the result is always a colummn
vector (so a comma does not separate rows).
A6.3.5 String constants
A string constant is a text enclosed in double quotes. To extend a string across a second
line, put a backslash between adjacent string constants. This backslash is optional:
adjacent string constants are concatenated
. (In non-interactive mode a string constant
is also allowed to span multiple lines.) A null character is always appended to indicate
the end of a string. The maximum length of a string constant is 2048 characters.
Escape sequences can be used to represent special characters:
Seitenansicht 137
1 2 ... 133 134 135 136 137 138 139 140 141 142 143 ... 171 172

Kommentare zu diesen Handbüchern

Keine Kommentare