Please enable JavaScript.
Coggle requires JavaScript to display documents.
How do Computers Performs Complex Mathematical Calculations? (Execute a…
How do Computers Performs Complex Mathematical Calculations?
Calculating Numbers
Data Representation
Computer stores and process data in the form of Binary numbers
Binary numbers are either in 1 or 0
Basic Mathematical Operations
Addition
Subtraction
Multiplication
Execute a program
High-level Language
C++ , Javascript, Phython
Are not understood by CPU
Comprehensive mathematical operations
Understood at human level
Converted by machine by Compiler
Assembly Language
Written using character strings
Assembly's instructions matches with machine instructions
3.Machine Language
Binary ONLY
Can be executed by machine / CPU
Computed extremely fast
Convert programming language into machine language
A program called Compiler
File created from the code is called Source Statements
How the Compiler works:
If code is successfully passed
Compiler builds an Output Code (object code)
Compiler analyse all programming language input by the programmer
Object code is the machine code that processor can execute one text at a time
The fundamental building block of the CPU
Arithmetic Logic Unit (ALU)
Known as the the brains of the computer
Two components:
Arithmetic Unit
Responsible for handling all numerical operations in a computer
Logic Unit
Performs logical operations and simple numerical tests
Components of the ALU
Logic Gates:
OR Gate
AND Gate
NOT Gate
XOR Gate