Skip to main content

Posts

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 ...

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 ea...

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 Computi...

Mastering Decoupled Cloud Architecture with Messaging and Queueing | Amazon SNS and SQS

In this blog, we'll explore microservices architecture—a modern approach to software development that brings flexibility, scalability, and resilience. We'll explain what microservices are and how they differ from traditional architectures, emphasizing the benefits they offer for application development. Additionally, we'll uncover the important role of messaging and queueing services like Amazon SNS and SQS in creating responsive and modular applications.  Monolithic applications are the traditional architecture for applications, which were the standard until the introduction of the Microservices approach. However, they are still in use today, particularly for simple landing pages or business websites. For more complex applications, the Microservices approach is religiously followed. The table below compares the monolithic and microservices approaches, highlighting their respective advantages and disadvantages: ...