Computer Science

Senior High

Preview

Every time a shop's till adds up your items, a phone calculates your mobile money balance, or a game moves a character across the screen, the computer is doing arithmetic. The part of the CPU that does this is the Arithmetic and Logic Unit (ALU). This note first looks at the arithmetic operations themselves and how to use them in Python, then at the clever bit-level tricks a CPU uses to calculate quickly.

Notes5

Arithmetic Operations in the CPU: From Everyday Sums to Bit Shifts

Topic: Y2-3 Arithmetic operations in the CPU

How computers do arithmetic, explained step by step: addition, subtraction, multiplication and division with their properties, PEMDAS and Python, then shift and rotation operations on binary numbers.

View resource Free to join

More on Arithmetic operations in the CPU

Other resources you can find on TudHub.

Arithmetic Operations in the CPU: From Everyday Sums to Bit Shifts (Computer Science) · TudHub