Roots Of Quadratic Equation In Python | Python Practice 5 | Newtum Solutions

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 2024

ความคิดเห็น • 8

  • @WardaWarda-ow6ze
    @WardaWarda-ow6ze 3 หลายเดือนก่อน +1

    Sir your explanation is excellent. Keep it up.

    • @NewtumYT
      @NewtumYT  3 หลายเดือนก่อน +1

      Thanks a lot

  • @bikibharali5240
    @bikibharali5240 3 หลายเดือนก่อน +3

    #solving quadratic eequation
    a = int(input("Enter the value of a: "))
    b = int(input("Enter the value of b: "))
    c = int(input("Enter the value of c: "))
    d = (b**2)-4*a*c
    if d>0:
    print("The roots are real and distinct.")
    x1 = (-b+d**0.5)/2*a
    x2 = (-b-d**0.5)/2*a
    print("The roots are",x1,"and",x2)
    elif d==0:
    print("The roots are real and equal.")
    x = (-b+d**0.5)/2*a
    else:
    print("The roots are imaginary.")

    • @NewtumYT
      @NewtumYT  3 หลายเดือนก่อน

      Your quadratic equation solver looks great! Any dbout feel to discuss with us.

  • @snehalgajbhiye1454
    @snehalgajbhiye1454 หลายเดือนก่อน +1

    Thank you so much sir😊

    • @NewtumYT
      @NewtumYT  หลายเดือนก่อน

      Most welcome if you want full understand of python please email us @ info@newtum.com we are providing peer coruse on python just email that u want free course

  • @alihamza-il8dq
    @alihamza-il8dq ปีที่แล้ว +2

    good explanation keep it up

    • @NewtumYT
      @NewtumYT  3 หลายเดือนก่อน

      Thank you so much for the encouragement! I appreciate your support.