DECOMPOS.BAS - GW-BASIC, simple multiplication via decomposition

DECOMPOS.BAS - GW-BASIC, simple multiplication via decomposition

Subscribers:
831
Published on ● Video Link: https://www.youtube.com/watch?v=ly9yhzxmYUs



Duration: 0:30
138 views
1


This must have been a method I read about or was taught in school to simplify multiplication by decomposing one of the two factors in the multiplication. instead of multiplying X by 38, do X * 30 and X * 8 instead, then add the two. Also, to avoid overflows, you can do X * 40 and X * -2 instead, and subtract, which this program shows.

My playlists:
--------------------
- Voxel: https://youtu.be/watch?v=XCVWEuhCCDM&list=PLjnbT4UISq0bQF1g85tE9jTrKfEtdRYlY
- Road: https://youtu.be/watch?v=ck5ALX11YU4&list=PLjnbT4UISq0bnfd1RC3M4PgTgkmhlkikV
- Ray Casting 3D: https://youtu.be/watch?v=zjswXUTMP2o&list=PLjnbT4UISq0YcFtRFjFQqK0g6ONNCtrvY
- Side-Scroll Shmup: https://youtu.be/watch?v=fF4X8zN-Raw&list=PLjnbT4UISq0Y_7IAN_zUzxgZnfhXxo_0Q
- MonoGame Tutorial: https://youtube.com/watch?v=WW1dJnfXWb0&list=PLjnbT4UISq0adw__Y9B2eXA0LL35TyORU

My websites:
---------------------
- my GitHub: https://github.com/JDoucette
- my company: http://xona.com
- my Blog: http://thefirstpixel.com