MATLAB POLYSPACE RELEASE NOTES Manual de usuario Pagina 34

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 240
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 33
2 Matrices and Arra ys
N=
63
The genvarname function can be useful in creating variable names that are
both valid and unique.
Numbers
MATLAB uses conventional decimal notation, with an optional decimal point
and leading plus or minus sign, for numbers. Scientific notatio n uses the
letter
e to specify a power-of-ten scale factor. Imaginary numbers use either i
or j as a suffix. Some examples of legal numbers are
3 -99 0.0001
9.6397238 1.6021 0e-2 0 6.02252e23
1i -3.14159j 3e5i
All numbers are stored internally using the long format specified by the IEEE
floating-point standard. Floating-point numbers have a finite precision of
roughly 16 significant decimal digits and a finite range of roughly 10
-308
to 10
+308
.
The section Avoiding Com mon Probl em s with Floating-Point A ri th m etic”
gives a few of the examples showing how IEEE floating-point arithmetic
affects computations in MATLAB. For more examples and inform ation, see
Technical N ote 1108 Common Problems with Floating-Point Arith metic.
Operators
Expressions use familiar arithmetic operators and precedence rules.
+
Addition
-
Subtraction
*
Multiplication
/
Division
\
Left divi sion (describ e d in “Matrices a n d Linear Algebra ”
in the MATLAB documentation)
^
Power
2-12
Vista de pagina 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 239 240

Comentarios a estos manuales

Sin comentarios