Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Units and Significance of Synchronizing Power Coefficient
Units of Synchronizing Power Coefficient (π·π¬π²π§)Generally, the synchronizing power coefficient is expressed in Watts per electrical radian, i.e., $$\mathrm{π_{syn} =\frac{π πΈ_{π}}{π_{π }}cos\:πΏ \:\:Watts/electrical\:radian β¦(1)}$$$$\mathrm{β΅ \:π\:radians = 180\:degrees}$$$$\mathrm{\Rightarrow\:1\:radian =\frac{180}{π}\:degrees}$$$$\mathrm{β΅ \:π_{syn}=\frac{ππ}{ππΏ}\:\:Watts/ \left(\frac{180}{π}\:degrees \right)}$$$$\mathrm{\Rightarrow\:π_{syn}=\left( \frac{ππ}{ππΏ}\right)\left(\frac{π}{180}\right)\:\:Watt/electrical\:degree β¦(2)}$$If p is the total number of pole pairs in the machine, then$$\mathrm{π_{electrical} = π \cdot π_{mechanical}}$$Therefore, the synchronizing power coefficient per mechanical radian is given by, $$\mathrm{π_{syn} = π \cdot\left( \frac{ππ}{ππΏ}\right)\:\:Watts/mech. radian β¦(3)}$$And, the synchronizing power coefficient per mechanical degree is given by, $$\mathrm{π_{syn} =\left( \frac{ππ}{ππΏ}\right)\left(\frac{π\:π}{180}\right)\:Watts/mech.degree β¦(4)}$$Significance of Synchronizing Power CoefficientThe synchronizing power coefficient ($π_{syn}$) is the measure of the stiffness of the electromagnetic coupling between the stator ...
Read MoreProgram to express a positive integer number in words in C++
Suppose we are given a positive integer number. We have to spell the number in words; like if a number "56" is given as input the output will be "Fifty-Six". The range of conversion is up to a billion.So, if the input is like input = 5678, then the output will be Five Thousand Six Hundred Seventy-Eight.To solve this, we will follow these steps βDefine an array βnumbersβ that contain pairs such as β {{"Billion", 1000000000}, {"Million", 1000000}, {"Thousand", 1000}, {"Hundred", 100}, {"Ninety", 90}, {"Eighty", 80}, {"Seventy", 70}, {"Sixty", 60}, {"Fifty", 50}, {"Forty", 40}, {"Thirty", 30}, {"Twenty", 20}, {"Nineteen", 19}, ...
Read MoreProgram to find out the k-th smallest difference between all element pairs in an array in C++
Suppose we are given a list containing several integer numbers. We have to find out the difference between each pair of values in the array and find out the k-th smallest difference number. The index starts at 0 and the value k is given to us as input.So, if the input is like numbers = {2, 6, 4, 8}, k = 2, then the output will be 2.The differences between the pairs are β(2, 6) = 4(2, 4) = 2(2, 8) = 6(6, 4) = 2(6, 8) = 2(4, 8) = 4If we sort the values, it becomes 2, 2, ...
Read MoreProgram to decode a given message in C++
Suppose we are given an encoded message that is a string of integer numbers. Now, these integer numbers can be mapped to a specific letter in the alphabet. a is mapped to 1, b is mapped to 2, c is mapped to 3, and so on. There is also a character '*' that can be in the message and that can be mapped to any of the numbers from 1 to 9. So given a message 'input', we have to find out how many ways it can be decoded.So, if the input is like input = "18", then the output ...
Read MoreProgram to find out the cost to merge an array of integers into a single value in C++
Suppose we are given an array arr that contains n positive integer numbers. We are also given an integer number j. The task we have to perform is to merge j numbers into a single number by adding them. The cost of merging is equal to the addition of the j numbers we have selected. We have to find out the minimum possible cost for this merging operation.So, if the input is like arr = [2, 5, 6, 2, 3, 1, 3], j = 4, then the output will be 31.Cost to merge 2, 3, 1, 3 is equal to ...
Read MoreProgram to find out the number of non-zero submatrices in C++
Suppose we are given a matrix that contains only two values; 1s and 0s. We have to find out the number of submatrices in the given matrix that contains all 1s. We print the value as output.So, if the input is like0010010001011101then the output will be 12.To solve this, we will follow these steps βn := size of matrixm := size of matrix[0]Define an array add of size: n+1 x m+1.for initialize i := 0, when i < n, update (increase i by 1), do βfor initialize j := 0, when j < m, update (increase j by 1), do ...
Read MoreProgram to find minimum cost to connect each Cartesian coordinates in C++
Suppose we have a list of 2D Cartesian coordinate points (x, y). We can connect (x0, y0) and (x1, y1), whose cost is |x0 - x1| + |y0 - y1|. If we are allowed to connect any number of points, we have to find the minimum cost necessary such that every point is connected by a path.So, if the input is like points = [[0, 0], [0, 2], [0, -2], [2, 0], [-2, 0], [2, 3], [2, -3]], then the output will be 14 because, from (0, 0) to (0, 2), (0, -2), (2, 0), (-2, 0), costs are 2, ...
Read MorePitch Factor, Distribution Factor, and Winding Factor for Harmonic Waveforms
When the flux density distribution in the alternator is non-sinusoidal, the induced voltage in the winding will also be non-sinusoidal. Thus, the pitch factor or coil span factor, distribution factor and winding factor will be different for each harmonic voltage.Pitch Factor for nth HarmonicAs the electrical angle is directly proportional to the number of poles and the angle between the adjacent slots, i.e., $$\mathrm{π_{π} =\frac{π}{2}π_{π} β¦ (1)}$$The chording angle increases with an increase in the order of the harmonics (n). In a short pitch coil, the chording angle is Ξ±Β° (electrical) for the fundamental flux wave. For the nth harmonic, ...
Read MoreC++ program to demonstrate function of macros
Suppose we are given a integer array that contains several integer values. We have to find out the difference between the smallest value and the largest value in the array. To solve this problem, we have to use macros. The inputs are taken from stdin, and the result is printed back to stdout.So, if the input is like array = {120, 589, 324, 221, 234}, then the output will be The answer is : 469The difference between the largest value 589 and the smallest value 120 is 469.To solve this, we will follow these steps βmini := infinitymaxi := negative ...
Read MoreC++ Program to add few large numbers
Suppose we have an array nums of some large numbers. The large numbers are in range (-2^31 to 2^31 - 1). We have to find the sum of these numbers.So, if the input is like nums = [5000000003, 3000000005, 8000000007, 2000000009, 7000000011], then the output will be 25000000035.To solve this, we will follow these steps βx := 0for initialize i := 0, when i < size of nums, update (increase i by 1), do βx := x + nums[i]return xExampleLet us see the following implementation to get better understanding#include #include using namespace std; long long int solve(vector nums){ Β Β long long int x = 0; Β Β for(int i=0; i
Read More