upd
This commit is contained in:
18
exam/archive/scripts/2.py
Normal file
18
exam/archive/scripts/2.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
E = 1.0
|
||||
r = 1.0
|
||||
|
||||
R = np.linspace(0.001, 5, 500)
|
||||
|
||||
P = E**2 * R / (R + r)**2
|
||||
|
||||
plt.plot(R, P)
|
||||
plt.xlabel("R")
|
||||
plt.ylabel("P(R)")
|
||||
plt.grid(True)
|
||||
|
||||
plt.savefig("2.png", dpi=300, bbox_inches="tight")
|
||||
plt.show()
|
||||
|
||||
Reference in New Issue
Block a user