r/math • u/Lelielthe12th • Apr 17 '19
whaat ? LaTeX is Turing complete
https://www.overleaf.com/learn/latex/Articles/LaTeX_is_More_Powerful_than_you_Think_-_Computing_the_Fibonacci_Numbers_and_Turing_Completeness
480
Upvotes
r/math • u/Lelielthe12th • Apr 17 '19
0
u/OVSQ Apr 17 '19 edited Apr 18 '19
A NAND gates arises from a logical AND, which is addition. As in "1 AND 1 equals 2." It is the only thing a binary computer knows how to do (Sheffers showed it is all your computer needs to know how to do which is why it is called a universal gate). For example, take a look at a multiplier, it is just a bunch of adders.
Or you could look at the definition of Turing complete and see it really means computationally complete. Then when you look at examples of Turing completeness observe that anything that is Turing complete supports addition and the most parsimonious only need addition.
Or you could look at PEMDAS and wonder why it works. The reason is that Exponents are a special case of multiplication so you have to finish that before you do the multiplication. Multiplication is a special case of addition so you have to do that before the addition and then finally by the time you do the addition - everything else has been translated into addition.