Egyptian division - Python Mathematics Project 13

Опубликовано: 14 Октябрь 2024
на канале: Begin Coding Fast
118
0

Egyptian division is an approach of doing division involving addition and multiplication. We make the first column that contains the powers of 2. Then we make the second column that contains the even multiples of the divisor. We find the multiples of the divisor that can accumulate to the dividend as close as possible. Then we add the corresponding powers of 2 to become the quotient. The remainder is obtained by subtracting the final accumulated sum from the dividend.

You'll learn most by trying my code while watching the video.

Basic Python Fast
   • Python tutorial for beginners | Pytho...  

Playlist of my Python mathematics projects
   • Python mathematics algorithm projects  

Playlist of my Python examples
   • Python projects for beginners with fu...