SEF9 - 53 Programming Concepts Lesson 03 (Decimal numbers in python are exact but not in C/C++. Zero difference means zero values.)

LESSON 03 C/C++ AND PYTHON ==> LEARNING POINTS
===============================================

(1) This lesson shows that numbers in C/C++ are not exact while numbers in Python are exact.

(2) Zero difference in Python means exactly zero values. This is not true for C/C++.

(3) Can you think of significant impacts of calculations with numbers that are not exact? How about the impacts of "accumulation of errors" when you are actually performing approximate calculations instead of exact calculations? Think, think, think. For example about "navigation".

See the attached two software codes. One is written in the C programming language, while the other in Python programming language.

--
WASSALAM
wruslan.hahaha

Attachments:
lesson-03-decimal-python.c
lesson-03-decimal-python.py

Full Version with Microsoft Word Version and Attachments
Return to Software Engineering Fundamentals (SEF9MMUWRY)
Previous Topic: 52 Programming Concepts Lesson 02 (Correct and incorrect calculations in C, C++ and Python. Why?)
Next Topic: READING => Parallel Programming Skills

0 comments:

Post a Comment