# Digital Electronics and Computer Organization

# Importance of Discrete Mathematics in Digital world

Discrete Mathematics and Digital Computers are having relation with each other. The word “Digital” is also taken from the same fact. Below you can find its explanation-

**Discrete mathematics** is very simple really. It just means that we’re only talking about whole numbers, or more accurately, things that can be counted.

So 0, 1, 2 and 3 are all part of discrete mathematics. The same goes for -1, -2, -3 and so on. How about 1.3, 36.9, -9.99 or 3.14? Well, they do not exist when talking about discrete mathematics. They are simply ignored. This actually makes the math much easier.

A continuous function (sine wave) may look like this:

while a discrete function (square wave) might look like this:

In the world of computers, all the information is stored in bits, units of information that can take the value of either 0 or 1. It’s not like in nature, where something can take all the values in between 0 and 1 as well. Instead, everything is binary.

Since the bits are the building blocks of everything that happens in computer software, everything becomes discrete. For instance, the hard drive on the laptop I’m using right now can store 1 845 074 329 600 bits of information. Not 1 845 074 329 599.99, but exactly that number. You can’t have half a bit.

# Logic Gates

There are several Types of logic gates available including-

- AND gate
- OR gate
- XOR gate
- NOT gate