Save this video free

Lecture 2: Errors and Basic Coding Proficiency

Professor Saad Explains · 1:21:54 · Watch on YouTube

Part of University of Utah CH EN 6400. See all 19 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

The lecture introduces error analysis and practical Python skills for engineering calculations. It explains how the Ariane 5 failure resulted from a 16-bit integer overflow, distinguishes modeling, programming, measurement, roundoff, and truncation errors, and develops true and approximate relative error measures. It also demonstrates Jupyter Notebook, NumPy, finite-difference derivatives, and why reusable functions, loops, and array indexing are preferable to repetitive copy-and-paste calculations.

Key takeaways

Chapters

0:00 Hidden Figures Shows the Shift from Human Computers to Programming
5:40 Why Chemical Engineering Adopted Python
9:39 Jupyter Notebook, JupyterHub, and Local Python Setup
14:20 Ariane 5: How a 16-Bit Overflow Caused a Rocket Failure
21:28 Jupyter Cells and the Floating-Point Cancellation Example
28:25 Modeling, Programming, Measurement, and Numerical Errors
34:52 True Error and Forward-Difference Derivatives
40:34 Relative True Error Puts Error in Context
44:30 True Error Supports Code Validation and Verification
48:07 Taylor Series and How Calculators Approximate e^0.3
56:00 Approximate Error and a Practical Stopping Criterion
59:48 Planning a Relative-Error Study for the Forward Difference
1:05:30 NumPy Setup and a Reusable Derivative Calculation
1:07:00 Why Copy-and-Paste Python Calculations Fail to Scale
1:12:55 Functions, Loops, and Arrays for Repeated Calculations
1:17:02 Python Array Indexing: From Index Zero to Negative One

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:01 Let's begin. Uh good morning everyone. Second class. Thank you for coming again. I hope you have uh downloaded Python. You got that sorted out. Yeah. Anaconda. >> Okay. So, you'll follow with me today and then Yeah. Yeah. It's it's not it's not too bad. Um the the slides from last week, there were a few slides left over that I'm not going to cover, but they're self-escriptive. It's how you access Python. There's two option. One with the Center for High Performance Computing. If you don't want to worry about downloading stuff on your laptop, you can just sign up for an account and access um Python through a web browser which is great and easy lightweight but

0:49 in the long term you need Python locally so that you can do amazing stuff on your computer. So I do recommend doing downloading Anaconda and having a Python distribution locally and specifically with the Python distribution we need to be accessing what's called Jupiter. I will explain today a little more about Jupiter. Uh but first I wanted to share with you uh this little clip that I share in all my classes. Some of you have seen it before. Uh and it's a you know when I used when I used to teach uh numerical methods um a second year class you know first students first time maybe just the first time being exposed to programming. It's less so now because programming coding coding I'm going to call it coding not programming it's become more and more people are learning how to code earlier u but this was the

1:39 first code I wanted to encourage them and show them that actually coding in this day and age is so much easier than it was 10 years ago 20 years ago 30 40

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Professor Saad Explains.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.