sqrtplot

sqrtplot
import numpy as np
import matplotlib.pyplot as plt

N = 10000

r = 1

winkel = 2 * np.pi * np.random.rand(N)
radius = r * np.sqrt(np.random.rand(N))
x = np.sin(winkel) * radius;
y = np.cos(winkel) * radius;

plt.scatter(x, y)
plt.show()
reox
Beiträge: 2511
Registriert: 06.06.2006 22:09:47

sqrtplot


05.01.2019 13:49:42
518

Zurück zu „Bilder vom Forum“