"Algorithm for Roots of the quadratic equation ax2 + bx + c = 0" Code Answer's

You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "Algorithm for Roots of the quadratic equation ax2 + bx + c = 0" answered properly. Developers are finding an appropriate answer about Algorithm for Roots of the quadratic equation ax2 + bx + c = 0 related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like Algorithm for Roots of the quadratic equation ax2 + bx + c = 0. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on Algorithm for Roots of the quadratic equation ax2 + bx + c = 0. 

Algorithm for Roots of the quadratic equation ax2 + bx + c = 0

By Cloudy CapybaraCloudy Capybara on May 22, 2021
Step 1: Start
Step 2: Declare variables a, b, c, D, x1, x2, rp and ip;
Step 3: Calculate discriminant
         D ← b2-4ac
Step 4: If D ≥ 0
              r1 ← (-b+√D)/2a
              r2 ← (-b-√D)/2a 
              Display r1 and r2 as roots.
        Else     
              Calculate real part and imaginary part
              rp ← -b/2a
              ip ← √(-D)/2a
              Display rp+j(ip) and rp-j(ip) as roots
Step 5: Stop             

Source: www.programiz.com

Add Comment

0

All those coders who are working on the Whatever based application and are stuck on Algorithm for Roots of the quadratic equation ax2 + bx + c = 0 can get a collection of related answers to their query. Programmers need to enter their query on Algorithm for Roots of the quadratic equation ax2 + bx + c = 0 related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about Algorithm for Roots of the quadratic equation ax2 + bx + c = 0 for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of Algorithm for Roots of the quadratic equation ax2 + bx + c = 0 while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "Algorithm for Roots of the quadratic equation ax2 + bx + c = 0". Visit this developer's friendly online web community, CodeProZone, and get your queries like Algorithm for Roots of the quadratic equation ax2 + bx + c = 0 resolved professionally and stay updated to the latest Whatever updates. 

Whatever answers related to "Algorithm for Roots of the quadratic equation ax2 + bx + c = 0"

View All Whatever queries

Whatever queries related to "Algorithm for Roots of the quadratic equation ax2 + bx + c = 0"

Browse Other Code Languages

CodeProZone