Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %matplotlib inline
- import matplotlib.pyplot as plt
- import numpy as np
- import math
- with open('data.txt') as f:
- A, Energy, L_max = f.read().splitlines()
- A = float(A)
- Energy = float(Energy)
- L_max = float(L_max)
- del_m_square = 7.6 / 10
- fig = plt.figure()
- ax = fig.add_subplot(111)
- box = [0.25, 0.5, 0.25, 0.25]
- x = np.arange(0.0, L_max, 1)
- p = 1 - A * np.sin(del_m_square*x/(Energy))*np.sin(del_m_square*x/(Energy))
- ax.plot(p)
- for ax in fig.axes:
- ax.grid(True)
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement