Advertisement
vatman

Untitled

Dec 4th, 2023
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. # Задаем параметры
  2. y = w2
  3.  
  4. # Создаем массив для аргумента x
  5. x = np.linspace(-40, 40, 1000)
  6.  
  7. # Вычисляем функцию z
  8. z = np.sqrt(1/2*(x**2 + y**2 + np.sqrt((y**2 - x**2)**2 + 4*a**2)))
  9.  
  10. # Строим график
  11. plt.figure(figsize=(12, 6))
  12. plt.plot(x, z)
  13. plt.xlabel('w1')
  14. plt.ylabel('Ω')
  15. plt.title('График функции Ω')
  16. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement