Compare commits
No commits in common. "388773f9898669ef16ff5e334f5a541d91a06b15" and "ee463720d9fcfa748fc8b36088c1c2105883e1aa" have entirely different histories.
388773f989
...
ee463720d9
|
@ -7,8 +7,8 @@ def s2n(s1n):
|
||||||
def s2n_new(s1n):
|
def s2n_new(s1n):
|
||||||
return np.sqrt((s1n ** 2) / (2 * (1 + np.sqrt(1 - ((s1n ** 2) / 4)))))
|
return np.sqrt((s1n ** 2) / (2 * (1 + np.sqrt(1 - ((s1n ** 2) / 4)))))
|
||||||
|
|
||||||
r = 1 #Radius
|
r = int(1) #Radius
|
||||||
n = 6 #Anzahl Ecken
|
n = int(6) #Anzahl Ecken
|
||||||
sn = r
|
sn = r
|
||||||
sn_new = r
|
sn_new = r
|
||||||
x = np.array([])
|
x = np.array([])
|
||||||
|
@ -34,8 +34,8 @@ plt.plot(x, y)
|
||||||
plt.plot(x, y_new)
|
plt.plot(x, y_new)
|
||||||
plt.xscale('log', base=2)
|
plt.xscale('log', base=2)
|
||||||
plt.xlim((2**3, 2**31))
|
plt.xlim((2**3, 2**31))
|
||||||
plt.legend(["2*pi", "2*pi_new"])
|
|
||||||
plt.ylim((6.25, 6.3))
|
plt.ylim((6.25, 6.3))
|
||||||
|
plt.legend(["pi", "pi_new"])
|
||||||
plt.title("Aufgabe 3")
|
plt.title("Aufgabe 3")
|
||||||
plt.show()
|
plt.show()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue