- import numpy as np
- import matplotlib.pyplot as plt
- # Задаємо діапазон значень x
- x = np.linspace(-5, 5, 400) # Від -5 до 5 з 400 точками
- # Рахуємо значення функції для кожного x
- y = 2**x
- # Будуємо графік
- plt.plot(x, y, label='f(x) = 2^x')
- plt.xlabel('x')
- plt.ylabel('f(x)')
- plt.title('Графік функції f(x) = 2^x')
- plt.grid(True)
- plt.legend()
- plt.show()
[text] Рро
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: