removed casting
This commit is contained in:
parent
14704d5cc6
commit
1638ceadcb
|
@ -7,8 +7,8 @@ def s2n(s1n):
|
|||
def s2n_new(s1n):
|
||||
return np.sqrt((s1n ** 2) / (2 * (1 + np.sqrt(1 - ((s1n ** 2) / 4)))))
|
||||
|
||||
r = int(1) #Radius
|
||||
n = int(6) #Anzahl Ecken
|
||||
r = 1 #Radius
|
||||
n = 6 #Anzahl Ecken
|
||||
sn = r
|
||||
sn_new = r
|
||||
x = np.array([])
|
||||
|
@ -35,7 +35,7 @@ plt.plot(x, y_new)
|
|||
plt.xscale('log', base=2)
|
||||
plt.xlim((2**3, 2**31))
|
||||
plt.ylim((3.125, 3.15))
|
||||
plt.legend(["pi", "pi_new"])
|
||||
plt.legend(["2*pi", "2*pi_new"])
|
||||
plt.show()
|
||||
|
||||
# mit der ersten Formel stimmt der berechnete Wert ab n = 50331648 nicht mehr.
|
||||
|
|
Loading…
Reference in New Issue