CodingTrain / Toy-Neural-Network-JS

Neural Network JavaScript library for Coding Train tutorials
MIT License
425 stars 242 forks source link

Half Adder Example #41

Closed JonasFovea closed 7 months ago

JonasFovea commented 6 years ago

I've added another example: A half adder.

The half adder adds two single binary digits A and B. It has two outputs, sum (S) and carry (C). The carry signal represents an overflow into the next digit of a multi-digit addition.

A B C S
0 0 0 0
1 0 0 1
0 1 0 1
1 1 1 0