In electrical and electronic circuits, there are five major electrical quantities that used to analyze circuits. These quantities are electric charge, electric current, voltage, electric power and electrical energy. In this article, we shall learn about these quantities in detail. What is Electric Charge? Electric charge or simply charge is the property of subatomic particles like protons and electrons. The electric charge is denoted by symbol Q or q and measured in Coulombs (C). Technically, electric charge is the concept which explains the electrical behavior of materials. Therefore, it is the electric charge that forms the basis of existence of ... Read More
A circuit element is the basic building block of an electric circuit. Basically, a circuit element is a mathematical model of an electrical device which is characterized by the relationship between voltage and current. The circuit element is the most elementary part of a circuit, therefore it cannot be further divided into sub-components. The common examples of circuit elements are resistors, inductors, capacitors, energy sources, etc. Types of Circuit Elements Depending on the behavior in the circuit, the electric circuit elements can be classified into the following types − Active Elements Passive Elements Unilateral Elements Bilateral Elements Linear Elements ... Read More
In digital electronics, basic logic gates are the important components of all digital devices and systems. A logic gate is a digital circuit whose operation is based on the Boolean function. Thus, logic gates are used for performing different logical operations on binary inputs to produce a binary output. Therefore, we can simply state that logic gates are the basic building blocks of digital devices and systems. All digital systems like computers are able to perform very complex logic operations, and these operation are performed by the interconnected system of basic logic gates. This interconnection of logic gates to perform ... Read More
The electron theory of matter is one of the most successful and experimentally proved theory that can explain the nature of electricity. Although the study of electricity has been attracting the attention of scientists for several hundred years, and there were several experiments and theories developed to understand the nature of electricity. The only theory that has explained it successfully is the electron theory of matter. The electron theory of matter is the result of experiments and researches conducted by many scientists like J. J. Thomson, R. A. Millikan, Earnest Rutherford and Bohr. This article is meant for explaining the ... Read More
Engineering materials can be classified into two broad categories namely metals and nonmetals. This classification of engineering materials is based on their physical and chemical properties. In this article, we shall discuss the differences between metals and non-metal, but before we will learn that what metals and non-metals are. What are Metals? Metals are the crystalline materials that have a number of differentially oriented fine crystals. At normal temperature, all metals are generally found in solid state. However, there are some exceptions such as mercury which found in liquid state at the normal temperature. All metals have comparatively high conductivity ... Read More
In electrical and electronic circuits, the power is one of the most significant quantities used to analyze the circuits for practical applications. The electrical power defined as the time rate of expanding or absorbing energy in a circuit, i.e., $$\mathrm{Power, P=\frac{Energy \;expanded\; or\; absorbed (𝑊)}{Time(𝑡)}}.....(1)$$ This article is meant for explaining power relations in AC circuits. Where, an AC circuit is one which is excited from a source alternating voltage. Instantaneous Power in an AC Circuit The value of electric power in an AC circuit measured at a certain instant of time is known as instantaneous power. It is generally ... Read More
In this article we will discuss about how to get the magnitude of a number in Go language. Magnitude of a quantity is defined as its numeric value. Magnitude of a number is always positive. In this article we will discuss about different methods by which we can obtain the magnitude of any number. Syntax func Abs(number float64) float64 Abs() is a method defined in math library. This method accepts a 64 bit float number as an argument and return the absolute value of it excluding the sign. The source code to the above stated problem is compiled and ... Read More
In this article we will discuss about how to display prime numbers between two intervals using functions in Go language. Syntax func Sieve(n int) []int func IsPrime(n int) bool If else conditionals in GO language: If condition { // code to be executed } else { // code to be executed } For loop as a while loop in GO language: for condition { // code to be executed // increment or decrement the count variable. } Sieve() function defined in primes package accepts ... Read More
In this tutorial we will learn how to create Complex numbers from given imaginary parts in Go programming language. A complex number is a basic data type of GoLang and is a combination of the real and imaginary part, where both parts of the complex number will be float type in golang. Complex Number = Real Number + Imaginary Number The function complex()in Go programming language is a built-in function that is used to construct a complex number from two floating-point values. The real and imaginary parts of the complex value must be of the same size and the return ... Read More
In this tutorial, we will learn how to convert string variables to double in Go programming language. String is a data type which is used to store characters or alphabets. Strings have a size of 1 byte or 8 bits. Whereas double is a data type which is used to store double precision floating point numbers. The size of double is 64 bits or 8 bytes. Program to Convert String type Variable to Double Using ParseFloat() Method Syntax func ParseFloat (s string, bitsize int) (float 64, error) ParseFloat() function is used to convert strings to float type values. This ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP