<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

bezyer egri chiziqlarni koʻrsatuvchi python skriptini yozing<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Python matplotlib kutubxonasidan foydalanib Bezier egri chizig'ini vizualizatsiya qilish uchun asosiy skript: ``python import numpy as np import matplotlib.pyplot as plt def bezier_curve(control_points, num_points=100): t = np.linspace ((0, 1, num_points) egri chizig'i = np.zeros (((num_points, 2)) i uchun diapazon (((num_points): curve[i] = (1-t[i]) ** 3 * control_points[0] + 3*(1-t[i]) ** 2 * t[i] * control_points[1] + 3*(1-t[i]) * t[i] 2 * control_points[2] + t[i] 3 * control_points[3] bezier<|eot_id|><|start_header_id|>user<|end_header_id|>

Menga bir necha marta ishlatish mumkin bo'lmagan funksiya yoqmaydi, uni joylasha olasizmi?<|eot_id|>