blog:articles:science:how_big_is_the_universe
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
blog:articles:how_big_is_the_universe [2019/02/16 14:11] – Phil Ide | blog:articles:science:how_big_is_the_universe [2019/03/06 10:37] (current) – Phil Ide | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== How Big Is The Universe? ====== | ====== How Big Is The Universe? ====== | ||
{{blog: | {{blog: | ||
- | I recently came across a youtube video explaining a method for multiplication that was quite different from long multiplication. To explain why this was so interesting, | + | I recently came across a youtube video explaining a method for multiplication that was quite different from long multiplication. To explain why this was so interesting, |
- | + | ||
- | Although long multiplication is fairly easy to teach, it has drawbacks. Firstly, you need to generate one interim result for each of the digits in the multiplier, and then sum these interim results. This takes up a lot of space when the multiplier is quite large, and takes a bit of time. The final result derives | + | |
=== === | === === | ||
+ | Although long multiplication is fairly easy to teach, it has drawbacks. Firstly, you need to generate one interim result for each of the digits in the multiplier, and then sum these interim results. This takes up a lot of space when the multiplier is quite large, and takes a bit of time. The final result derives the least significant digits first – that is, the rightmost digit. | ||
+ | |||
The other method only ever produces two interim results, and it generates them at the same time. The final result is generated beginning with the most significant digit, and in fact you can begin reading off the result before you have finished the calculation. Pretty awesome huh? | The other method only ever produces two interim results, and it generates them at the same time. The final result is generated beginning with the most significant digit, and in fact you can begin reading off the result before you have finished the calculation. Pretty awesome huh? | ||
Line 40: | Line 40: | ||
That result is 29 digits long, and is several orders of magnitude larger than a 64-bit computer can actually understand is a number. | That result is 29 digits long, and is several orders of magnitude larger than a 64-bit computer can actually understand is a number. | ||
+ | |||
+ | You can download the PHP code, including a test script that calculates the size of the visible universe on the [[: | ||
+ | ~~socialite~~ | ||
+ | ~~DISCUSSION~~ |
blog/articles/science/how_big_is_the_universe.1550326270.txt.gz · Last modified: 2019/02/19 12:15 (external edit)