Inline functions
M-file function | M text file |
---|---|
Accept input data in the function name | Receiving data to the workspace or keyboard |
Dedicated arithmetic operation performed in the internal memory, regardless of the workspace | Data exchange in the workspace |
M can not call a text file | Files can call the function M |
Supplementary operator precedence (highest to lowest):
-
Parentheses ()
-
Transposition ( '), the power (^), complex conjugate transpose ('), Matrices (^)
-
One yuan addition (+), unary minus (-), negation (~)
-
Multiplication (. ), Matrix multiplication ( ), in addition to the right (./), in addition to the left (. \), Matrix right division (/), matrix left division (\)
-
Addition (+), subtraction (-), logical NOT (~)
-
Colon operator (:)
-
Less than, less than or equal, greater than, greater than or equal, equal to, not equal to
-
Wise logical operation AND (&)
-
By logical operations or (|)
-
"Avoid wound" AND (&&)
-
"Avoid wound" AND (||)
The operator precedence, found in the book error occurred, should be A = (s * (s - a) * (s - b) * (s - c)) ^ (1/2);