Recent Questions and Answers

Recent Questions

33180 QuestionsPage 6 of 2212.

Technical : Predict the Output of the Given Code

Please explain the code and predict the output:

import numpy as np
import matplotlib.pyplot as plt
from scipy import signal

rhp - spectral noise density unit/SQRT(Hz)
sr - sample rate
n - no of points
mu - mean value, optional

n points of noise signal with spectral noise density of rho
def white_noise(rho, sr, n, mu=0):
sigma = rho * np.sqrt(sr/2)
noise = np.random.normal(mu, sigma, n)
return noise

rho = 1
sr = 1000
n = 1000
period = n/sr
time = np.linspace(0, period, n)
signal_pure = 100*np.sin(2*np.pi*13*time)
noise = white_noise(rho, sr, n)
signal_with_noise = signal_pure + noise

f, psd = signal.periodogram(signal_with_noise, sr)

print("Mean spectral noise density = ",np.sqrt(np.mean(psd[50:])), "arb.u/SQRT(Hz)")

plt.plot(time, signal_with_noise)
plt.plot(time, signal_pure)
plt.xlabel("time (s)")
plt.ylabel("signal (arb.u.)")

plt.semilogy(f[1:], np.sqrt(psd[1:]))
plt.xlabel("frequency (Hz)")
plt.ylabel("psd (arb.u./SQRT(Hz))")
#plt.axvline(13, ls="dashed", color="g")
plt.axhline(rho, ls="dashed", color="r")

Asked by: Saranya on Oct 30, 2020.

Determine the Mole and Weight Fraction of Acetone

A mixture of Acetone vapour and Nitrogen gas at 101.3 kPa and 295 K contains acetone vapour to the extent that it exerts a partial pressure of 20 kPa. The vapour pressure of acetone at 295 K is 26.36 kPa. Determine

a) Mole fraction of acetone in the mixture.
b) Weight fraction of acetone in the mixture.
c ) Molal Humidity.

Asked by: Harsh on Oct 29, 2020.

Change the Voice of the Sentence: Mangoes are eaten every day

Mangoes are eaten every day. Change it into active voice.

Asked by: Hillmi on Oct 29, 2020.

Create a Database for a City

Implement a city database, each database record contains the name of the city (a string of arbitrary length) and the coordinates of the city expressed as integer x and y coordinates. Your database should allow records to be inserted, deleted by name or coordinate, and searched by name or coordinate. Another operation that should be supported is to print all records within a given distance of a specified point (capital city).

Asked by: Suryajith on Oct 27, 2020.

Calculate the Number of Apples bought by a Person

A person spent Rs. 9.10 in buying oranges at the rate of 3 for 10 paise and apples at 25 paise for a dozen; if he had bought five times as many oranges and a quarter of the number of apples he would have spent Rs. 26.50. How many apples did he buy?

Asked by: Djmh on Oct 27, 2020.

Calculate the Strains of a Cube

Calculate the strains induced in a cube of 400mm side in x,y & z direction if it is subjected to the stress of 300 N/mm2 ( tensile) in Yorkshire direction & 200N/mm2 (compression) in Zurich direction.

Asked by: Justus on Oct 25, 2020.

HR Question: What sorts of facilities did you require from the company end?

What sorts of facilities did you require from the company end?

Asked by: Gautam Kumar Mandal on Oct 22, 2020.

Find the Missing Number 7, 4, 5, 12, 45, D, 1329, 9300,

7, 4, 5, 12, 45, D, 1329, 9300.

Asked by: Hood on Oct 15, 2020.

Uses of The Floppy Disk

What are the uses of the floppy disk?

Asked by: Abubakar Sadiq Umar on Oct 15, 2020.

Find the Total Percentage of a Student

A student secures 90%, 60%, 54% marks in three test papers with maximum marks 100,150,200 respectively. Find his aggregate percentage.

Asked by: Tanvi on Oct 14, 2020.

Next Term of 3 8 16 33 57

Find the next term of 3 8 16 33 57 ?

Asked by: Abhijit Mondal on Oct 14, 2020.

Find the CP of the Bed Sheet

A bed sheet was sold for $483 thereby gaining is 15%. Find the C.P. of the bedsheet.

Asked by: Angel on Oct 12, 2020.

Find the value of X in 44x + 55x = 121x.

Find the value of (x) if 44x + 55x = 121x.

Asked by: Olarewaju Ayomide on Oct 9, 2020.

Uses of Feeler Gauge

A feeler gauge is used to check ___________.

Asked by: Manik Sarkar on Oct 8, 2020.

Find the Analogy for 27 : 18 :: 46 : ?

Find the analogy for 27 : 18 :: 46 : ?

Asked by: Alekya.C on Oct 6, 2020.

Sponsored Links

Current Affairs

Quick Links