Constants

Sat 17 May 2025

title: "Constants" author: "Raja CSP Raman" date: 2019-04-20 description: "-" type: technical_note draft: false


from scipy.constants import pi
pi
3.141592653589793
from scipy.constants import golden
golden
1.618033988749895
from scipy.constants import G
G
6.67408e-11
from scipy.constants import speed_of_light as sol
sol
299792458.0


Score: 10

Category: scipy


Cumulatiave Distribution Function 1

Sat 17 May 2025

title: "Cumulative Distribution Function" author: "Raja CSP Raman" date: 2019-05-06 description: "-" type: technical_note draft: false


import numpy as np
import matplotlib.pyplot as plt
data = np.loadtxt('random_timestamp.txt')

print(data)

# Choose how many bins you want here
num_bins = 20

# Use the histogram function to bin the data
counts, bin_edges …

Category: scipy

Read More

Cumulatiave Distribution Function 2

Sat 17 May 2025

title: "Cumulative Distribution Function 2" author: "Raja CSP Raman" date: 2019-05-06 description: "-" type: technical_note draft: false


import numpy as np
import matplotlib.pyplot as plt
data = np.loadtxt('random_timestamp.txt')

print(data)

sorted_data = np.sort(data)

yvals=np.arange(len(sorted_data))/float(len(sorted_data)-1)

plt.plot(sorted_data,yvals)

plt …

Category: scipy

Read More

Fft-And-Ifft

Sat 17 May 2025

title: "FFT and IFFT" author: "Raja CSP Raman" date: 2019-05-06 description: "-" type: technical_note draft: false


from scipy.fftpack import fft, ifft
import numpy as np
x = np.array([1, 2, 4, 5])
x
array([1, 2, 4, 5])
y = fft(x)
y
array([12.+0.j, -3.+3.j, -2 …

Category: scipy

Read More

Fourier-Transform

Sat 17 May 2025

title: "Fourier Transform" author: "Raja CSP Raman" date: 2019-05-06 description: "-" type: technical_note draft: false


from scipy.fftpack import fft
import numpy as np
x = np.array([1, 2, 3, 4])
x
array([1, 2, 3, 4])
y = fft(x)
y
array([10.+0.j, -2.+2.j, -2.+0.j …

Category: scipy

Read More
Page 1 of 1