Electron microscopy
 
Mistakes in DM
- Practical Electron Microscopy and Database -
- An Online Book -
Microanalysis | EM Book                                                                                   http://www.globalsino.com/EM/        


=================================================================================

 

DM sometimes makes mistakes or provides wrong output as shown in Table 1127.

Table 1127. Examples of DM mistakes or wrong output.

Script Mistake or wrong output

number choice;

if(choice == 1)
{
number a, b; /* activate two integer vars */
a = 1
b = 2
number c = a + b
result ("Sum is " + c + "\n")
}

else
{
result ("Done" + "\n")
}

The script output is "Done", which is wrong since the variable "choice" is actually not given in the script.

 

 

=================================================================================