1

A basic calculator can perform a wide variety of operations. How does the claculator 'get' the concept of adding two numbers in the same way a human does? I dont think people that make claculators store every possible result of every possible addition on the chip before shipping it. Soemhow the chip needs to 'learn' how to add.

I mean if I were to start with a blank slate(chip) and 'teach' the chip to perform calculations(additions), how do i go about it? Do i need to learn artificial nural networks first?

Kaushik
  • 1,205

1 Answers1

7
  1. Work in binary: 0, 1, 10, 11, 100, 101...

  2. Know your math: 0+0=00, 0+1=01, 1+0=01, 1+1=10

  3. Know your logic: or, and, not, xor...

  4. Find that the low bit is a XOR and the high bit is a AND.

  5. Expand the principle of one bit to 8, 16, 32, 64 bits

  6. Build it with logic gates.

enter image description here

If you want to know more, see my answer to How is fundamental mathematics efficiently evaluated by programming languages?

mouviciel
  • 15,491