ToolPythonBeginner
numpy.abs
Python. Called in 8 tutorials; each line below leads to its place in the tutorial.
ToolPythonIntermediate
Filtering with scipy.signal: mains hum and noise out of an ECG
- return 2 * np.abs(np.fft.rfft(s)) / s.size # mV
- k50 = np.argmin(np.abs(freq - 50))
- print(f"harmonic {n:2d} {A_raw[np.argmin(np.abs(freq - f_n))]:.4f} mV at {f_n:.1f} Hz")
- for f_c, g in zip(f_check, 20 * np.log10(np.abs(h))):
- gain = 20 * np.log10(np.abs(h))
- print(f"{N:5d}" + "".join(f"{g:8.1f} dB" for g in 20 * np.log10(np.abs(h))))
and 8 more lines in this tutorial
ToolPythonBeginner
Minimization with scipy.optimize.minimize: the shape of a seven-atom cluster
ToolPythonBeginner
Numerical integration with scipy.integrate: the area under a measured peak
ToolPythonBeginner
Random numbers with numpy.random: ten thousand reproducible random walks
ConceptPythonBeginner
The Fourier transform: asking a signal how much of each frequency it contains
ToolPythonBeginner
py-pde from the ground up: the heat equation on a square plate
ToolPythonIntermediate