Underground Three Phase AC SystemWhen the three phase AC electric power is transmitted through the underground cables, then the system of electric power transmission is called the underground three phase AC system.Depending upon the number of conductors used, the underground three-phase AC system of electric power transmission is classified into two types −Three-Phase Three-Wire SystemThree-Phase Four-Wire SystemConductor Material Required in Underground Three-Phase Three-Wire SystemThe circuit diagram of the underground 3-phase 3-wire AC system is shown in Figure-1. In this system, the three line conductors are taken from the three phase windings of the alternator.Let the maximum value of voltage between ... Read More
Suppose, we have a n x n matrix. Each element in the matrix is unique and is an integer number between 1 and n2. Now we can perform the operations below in any amount and any order.We pick any two integers x and y that are in the matrix, where (1 ≤ x < y ≤ n) and swap the columns containing x and y.We pick any two integers x and y that are in the matrix, where (1 ≤ x < y ≤ n) and swap the rows containing x and y.We have to note that x + y ... Read More
Underground Single-Phase AC SystemThe electric transmission system which transmits the single-phase AC electric power through the underground cables is termed as the underground single-phase AC system of transmission.The underground single-phase AC system of electric power transmission is classified into three types viz. −Single-Phase Two-Wire AC SystemSingle-Phase Two-Wire AC System with Mid-Point EarthedSingle-Phase Three-Wire AC SystemThe various systems of the electric transmission require different volume of conductor material. The volume of conductor material required in the above 1-phase underground AC system is described below.Conductor Material Required in 1-Phase 2-Wire Underground AC SystemThe typical single-phase 2-wire AC underground AC system is shown ... Read More
Underground DC SystemWhen the DC electric power is transmitted from the power generating station to the consumer through the underground cables, then the electric power transmission system is called the underground DC system.The underground DC transmission system is classified into three types −Two-Wire DC SystemTwo-Wire DC System with Mid-Point EarthedThree-Wire DC SystemConductor Material Required in Underground 2-Wire DC SystemThe underground two-wire DC system is shown in Figure-1. It has two conductors taken from the generator terminals.Let, 𝑉𝑚 = Maximum voltage between conductors𝑃 = Power to be transmitted𝑙 = Distance for which power is transmittedThe load current is given by, $$\mathrm{\mathit{I_{\mathrm{1}}\mathrm{\, ... Read More
Suppose, we are given a grid of dimensions h x w. Each cell in the grid contains some positive integer number. Now there is a path-finding robot placed on a particular cell (p, q) (where p is the row number and q is the column number of a cell) and it can be moved to cell (i, j). A move operation has a particular cost, which is equal to |p - i| + |q - j|. Now there are q number of trips, which has the following properties.Each trip has two values (x, y) and there is a common value ... Read More
To multiply one polynomial to another, use the numpy.polynomial.polynomial.polymul() method in Python. Returns the multiplication of two polynomials c1 + c2. The arguments are sequences of coefficients from lowest order term to highest, i.e., [1, 2, 3] represents the polynomial 1 + 2*x + 3*x**2.The method returns the coefficient array representing their sum. The parameters c1 and c2 are the 1-D arrays of coefficients representing a polynomial, relative to the “standard” basis, and ordered from lowest order term to highest.This numpy.polynomial.polynomial module provides a number of objects useful for dealing with polynomials, including a Polynomial class that encapsulates the usual ... Read More
To subtract one polynomial to another, use the numpy.polynomial.polynomial.polysub() method in Python. Returns the difference of two polynomials c1 + c2. The arguments are sequences of coefficients from lowest order term to highest, i.e., [1, 2, 3] represents the polynomial 1 + 2*x + 3*x**2.The method returns the coefficient array representing their difference. The parameters c1 and c2 returns 1-D arrays of polynomial coefficients ordered from low to high.This numpy.polynomial.polynomial module provides a number of objects useful for dealing with polynomials, including a Polynomial class that encapsulates the usual arithmetic operations.StepsAt first, import the required libraries -from numpy.polynomial import polynomial ... Read More
To add one polynomial to another, use the numpy.polynomial.polynomial.polyadd() method in Python. Returns the sum of two polynomials c1 + c2. The arguments are sequences of coefficients from lowest order term to highest, i.e., [1, 2, 3] represents the polynomial 1 + 2*x + 3*x**2.The method returns the coefficient array representing their sum.The parameters c1 and c2 returns 1-D arrays of polynomial coefficients ordered from low to high.This numpy.polynomial.polynomial module provides a number of objects useful for dealing with polynomials, including a Polynomial class that encapsulates the usual arithmetic operations.StepsAt first, import the required libraries-from numpy.polynomial import polynomial as PDeclare ... Read More
To compute the inverse of a 3D array, use the numpy.linalg.tensorinv() method in Python. The result is an inverse for a relative to the tensordot operation tensordot(a, b, ind), i. e., up to floating-point accuracy, tensordot(tensorinv(a), a, ind) is the “identity” tensor for the tensordot operation. The method returns a’s tensordot inverse, shape a.shape[ind:] + a.shape[:ind].The 1st parameter is a, the Tensor to ‘invert’. Its shape must be ‘square’, i. e., prod(a.shape[:ind]) == prod(a.shape[ind:]). The 2nd parameter is ind, the number of first indices that are involved in the inverse sum. Must be a positive integer, default is 2.StepsAt first, ... Read More
We can develop games in Python using PyGame. PyGame is a Python module that is used to develop games. This module includes computer graphics and sound libraries used in video game development.Install PyGameTo develop game in Python, we need PyGame. Therefore, we need to install PyGame.We should Python and pip preinstalled on our system before installing PyGame.Open the terminal and type the following command to install PyGame.py -m pip install -U pygame --userImport PyGameThe PyGame module needs to be imported in Python IDE before writing the program for the game. There is some common code that includes displaying the pygame ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP