Ikkinchi darajali tenglama quyidagi shaklda bo'lgani uchun: ax^2 + bx + c = 0 Ularni yechadigan funksiya quyidagicha bo'ladi: def yechadi_eq_2Grade ((a, b, c): // Diskriminantni aniqlaymiz, u haqiqiy ildizlarga ega yoki yo'qligini bilish uchun = b * b - 4 * a * c sqrtval = math.sqrt ((abs (((discri)) // Agar u 2 ta haqiqiy ildizlarga ega bo'lsa: if discriminant > 0: print ((("real and different roots ") print-((y + sqrtval) / (((2 * x)))) print-((y - sqrtval) / (((2 * x)) // Agar bitta ildiz elif diskriminantga ega bo'lsa: == 0 ((( print ("real and same roots") print-(y /
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence