Created
February 21, 2024 04:58
-
-
Save kumanna/245bddf4363c380f6456cde7277b0426 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
t = np.arange(-10, 10, 0.001) | |
r = np.zeros_like(t);N = 100; | |
for i in range(-N, N + 1): | |
r = r + np.exp(1j * 2 * np.pi * t * i) | |
plt.plot(t, np.real(r));plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment