DECOMPOS.BAS - GW-BASIC, simple multiplication via decomposition VIDEO
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
Other Videos By Jason Doucette 2021-11-22 MZGM2021.BAS - GW-BASIC, 2021 refactor: feature rich maze game 2021-11-19 CMP20GAM.BAS - GW-BASIC, maze game 2021-11-17 CMPX2021.BAS - GW-BASIC, 2021 refactor: optimized version of CMPLXM40.BAS 2021-11-16 CMPX2021.BAS - GW-BASIC, multi-path maze generator in 320x200 2021-11-16 CMPLXM40.BAS - GW-BASIC, 320x200 perfect maze generation 2021-11-16 CMPLXM20.BAS - GW-BASIC, multi-path perfect maze generator, 160x200 2021-11-16 MAZE80.BAS - GW-BASIC, perfect maze generation in 80 column text 2021-11-16 MAZE40.BAS - GW-BASIC, perfect maze generator, 40 column text 2021-11-14 CENTIPED.BAS - GW-BASIC, Centipede arcade clone 2021-11-14 ALIEN1.BAS - GW-BASIC, space alien animation for gallery shooter 2021-11-14 DECOMPOS.BAS - GW-BASIC, simple multiplication via decomposition 2021-11-14 EXPL2021.BAS - GW-BASIC, 2021 refactor: 16-color explosion version 2021-11-14 EXPLOSI3.BAS - GW-BASIC, particle explosion lines #3 2021-11-14 EXPLOSI2.BAS - GW-BASIC, colored particle explosion #2 2021-11-14 EXPLOSIO.BAS - GW-BASIC, particle explosion #1 2021-11-14 TILE-4C.BAS - GW-BASIC, 4-color tiling pattern 2021-11-14 LTTRPZZL.BAS - GW-BASIC, Letter Puzzles, summation of letter values 2021-11-13 CAVERNQU.BAS - GW-BASIC, platformer level design, 8x8 tiles 2021-11-13 ROAD.BAS - GW-BASIC, 2D overhead road animation via palette 2021-11-11 TROUNCE.BAS - GW-BASIC, trace route + bounce physics = trounce 2021-11-11 WEWISHYO.BAS - GW-BASIC, Tandy 1000 3-tone music (We Wish You a Merry Xmas)