Semiconductor Engineering: Numerical Analysis & Computer Simulations

Lecture 1: Fundamentals of Computer Simulation & Error Analysis


1. Course Introduction & Logistics


2. Today’s Assignment (Due: Midnight, June 11th)

Problem 1: Number Base Conversion (Manual Calculation Required) 1. Convert (101001)2(101001)_2 to Base 10. 2. Convert (4251)10(4251)_{10} to Base 16. * Please solve manually first; programs can be used for verification.

Problem 2: Python Program Analysis 1. Choose one Python program from lecture materials. 2. Explain what each block/part of the source code does. 3. If unclear, list the parts you don’t understand and explain why. * Objective: Engage with code, even if not fully understood.


3. Fundamentals of Computer Representation


3.1 Number Base Conversion: Base-r to Base-10


3.2 Number Base Conversion: Base-10 to Base-r


3.3 Data Storage Units: Bits & Bytes


4. Numerical Representation in Computer Programs

4.1 Integer Data Types (Whole Numbers)


4.2 Floating-Point Data Types (Real Numbers)


4.2 Floating-Point Data Types (Cont.)


5. Sources of Numerical Errors in Computation

5.1 Round-off Error


5.2 Overflow and Underflow


5.3 Truncation Error

5.4 Convergence Error

5.5 Model/Approximation Error


6. Practical Implications & Avoiding Errors

6.1 Floating-Point Comparisons (if (x == y))


6.2 Converting Floating-Point to Integer


6.3 Information Buried (Catastrophic Cancellation)


7. Conclusion & Assignment Review

Questions? Thank you. —