Skip to main content

Posts

Computer structure and programming

What is a computer? Computer is an electronic device that manipulate data. It has the ability to store, retrieve and process data.  Computer Structure Most computers in the modern world use the Von Neumann structure among other models such as the Harvard Model. The Von Neumann structure consists of 3 main parts, Input Output devices aka peripherals, CPU and Memory.  Von Neumann Architecture 1. Input / Output devices The Input devices include devices such as keyboards, mouses (or mice), sensors, and scanners. The Output devices include speakers, monitors and printers.  2. Memory unit The Memory unit sometimes called "Main Memory" stores the data and instructions from the input devices and the Central Processing Unit. It works closely with the CPU to execute calculations. There are 2 types of memories: RAM and ROM. 1. RAM (Main Memory) Random Access Memory, commonly abbreviated as RAM stores the data and instructions that the CPU requires. When the computer is powered off, all

Electric Charge - Definition, Types and How to Calculate

Electric charges have 2 signs: positive(+) and negative(-). The same charges repel while opposite charges attract.   How does a particle or an object get charged? Well, the atom consists of neutral neutrons and positive protons packed in the central nucleus with negative electrons orbiting around the nucleus. When the number of electrons is higher than the number of protons, the particle becomes negatively charged. And when number of protons is higher than the number of electrons, the particle becomes positively charged. When particles bond together, the electrons that aren't used in the said bond become conduction or free electrons that are free to roam while leaving positively charged particles. This material is called a conductor . Some examples of a conductor include metals, water, and the human body. If the material has barely or any free electrons it is said to be an insulator . Some examples of an insulator are plastic, fabric, and glass. Semi-conductors are somewhat in-be

Vectors in Cylindrical and Spherical Coordinate Systems

 It is useful to learn about other coordinate systems. For example, to solve a problem involving a cylindrical shape like electromagnetic fields on a rod, you should use a cylindrical spherical coordinate system. For problems involving a sphere, like electromagnetic fields of a sphere, you should use spherical coordinate systems. Cylindrical Coordinate System     Cylindrical coordinates add the Z dimension to the polar coordinates (r, θ). It's dimensions are  (r, θ, z) which are radial, azimuthal, and vertical axes.  From cartesian to cylindrical: From cylindrical to cartesian: x = r*cos(θ) r²= x² + y² y = r*sin(θ) tan(θ)=y/x z = z z = z Spherical Coordinate System Spherical coordinates are  (r, θ, φ) which are radial, azimuthal, and vertical axes.  From cartesian to spherical: From spherical to cartesian: x = r*sin(θ)cos(φ) r²= x² + y² + z² y = r*sin(θ)sin(φ) cos(θ)=z/r z = r*cos(θ) tan(φ) =y/x This gif can help you visualize how changing each coordinate changes the position of ou

Predicate logic explained (with examples)

What is predicate logic and how is it different from propositional logic? Consider the example: All men are mortal. Socrates was a man. Socrates is mortal. This argument can't be expressed as propositional logic. Notice the keyword "All". Propositional logic only has one variable. However the statement "All men are mortal" is a predicate. It is neither true or false. It is both depending on who the subject is also known as the predicate variable. For example, the statement "Elon Musk is a billionaire" is true, but the statement "I am a billionaire" isn't. Unless, I become one in the coming years. Predicates A predicate is a statement that contains variables and that may be true or not depending on the values of these variables. Predicate : P(x) is a color. Predicate Instantiated (Proposition) : P(red) is a color. Predicate's domain (values which x can take): {red, green, apple} You can also think of a predicate as a function. f(x) =

Discrete Mathematics - Inference Rules for Propositional Logic

Why do we grab an umbrella when the weather is set to be rainy for the day? How does your weather app recommend outdoor activities when the weather is sunny? It seems as simple as one plus one but these rules we use for our logical reasoning are the basis for many fields such as mathematics, computer science, philosophy, and legal reasoning.

Types of AWS Compute Services

In the Cloud, there are many services that allow you to host your application. One such service is AWS Elastic Compute Cloud  (EC2). EC2 is a virtual machine where you can rent its computing power to host your web applications, gaming server, processing datasets, running analytics, and many more. Companies such as Netflix, Airbnb, and financial institutions use EC2 to run handle heavy compute and storage requirements, such as on-demand delivery of video content, process bookings, handling search queries, managing data storage, risk analysis models, performing algorithmic trading, and handling high-frequency trading operations. However, not everyone wants to endure the hard labor of configuring and maintaining servers. We just want to focus on building good and unique applications, things that are vital to our company. With serverless computing, you can do just that. Serverless Computing