Binary in DM - Practical Electron Microscopy and Database - - An Online Book - |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Microanalysis | EM Book http://www.globalsino.com/EM/ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
================================================================================= | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table 1134a. Binary in DM.
An example of logical OR operations is below (DM script): Result( "\n\n") The result of the program is shown in Table 1134b. In this script, each digit performs a OR operation.
An example of logical AND operations is DM script. The result of the program is shown in Table 1134c. In this script, each digit performs an AND operation.
As discussed on page1136, in DM and C++, logical XOR operation can be performed by "(a||b) &&!(a && b)"; however, in DM, XOR is simplified by "^" as shown a table on page1136 (e.g. DM script). Table 1134d. Results of a DM script of a logical XOR operation by following the rule in a table on page1136.
An example of logical NOT operations is DM script. In this script, each digit performs an NOT operation as well.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
================================================================================= | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||