Buckets:
| import numpy as np | |
| from numpy import sin, pi | |
| def I(x): | |
| return sin(2*pi*x) + 0.5*sin(4*pi*x) + 0.1*sin(6*pi*x) | |
| # Mesh | |
| L = 10; Nx = 100 | |
| x = np.linspace(0, L, Nx+1) | |
| dx = L/float(Nx) | |
| # Discrete Fourier transform | |
| A = np.fft.rfft(I(x)) | |
| A_amplitude = np.abs(A) | |
| # Compute the corresponding frequencies | |
| freqs = np.linspace(0, pi/dx, A_amplitude.size) | |
| import matplotlib.pyplot as plt | |
| plt.plot(freqs, A_amplitude) | |
| plt.show() | |
Xet Storage Details
- Size:
- 423 Bytes
- Xet hash:
- 0d750b2d2a64599a141e712506c0cf5f37f66e85553b489a33e38354cd278388
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.