import numpy as npimport matplotlib.pyplot as plt
x = np.linspace(-2, 2, 400)y = 4**x
plt.figure(figsize=(8, 6))plt.plot(x, y, label='y = 4^x')plt.xlabel('x')plt.ylabel('y')plt.title('Graph of y = 4^x')plt.grid(True)plt.legend()plt.show()
y = (1/4)**x
plt.figure(figsize=(8, 6))plt.plot(x, y, label='y = (1/4)^x')plt.xlabel('x')plt.ylabel('y')plt.title('Graph of y = (1/4)^x')plt.grid(True)plt.legend()plt.show()
y = 3**x - 2
plt.figure(figsize=(8, 6))plt.plot(x, y, label='y = 3^x-2')plt.xlabel('x')plt.ylabel('y')plt.title('Graph of y = 3^x-2')plt.grid(True)plt.legend()plt.show()
import numpy as np
Функция А: у=4^ximport matplotlib.pyplot as plt
x = np.linspace(-2, 2, 400)
y = 4**x
plt.figure(figsize=(8, 6))
Функция Б: y=(1/4)^xplt.plot(x, y, label='y = 4^x')
plt.xlabel('x')
plt.ylabel('y')
plt.title('Graph of y = 4^x')
plt.grid(True)
plt.legend()
plt.show()
y = (1/4)**x
plt.figure(figsize=(8, 6))
Функция В: y=3^x-2plt.plot(x, y, label='y = (1/4)^x')
plt.xlabel('x')
plt.ylabel('y')
plt.title('Graph of y = (1/4)^x')
plt.grid(True)
plt.legend()
plt.show()
y = 3**x - 2
plt.figure(figsize=(8, 6))
plt.plot(x, y, label='y = 3^x-2')
plt.xlabel('x')
plt.ylabel('y')
plt.title('Graph of y = 3^x-2')
plt.grid(True)
plt.legend()
plt.show()