PROBLEM 21 - 0517: Write a subroutine which computes the roots of the quadratic equation a,x2 + a,x + a, = 0 according to the quadratic formula: X12 = (-az/2a,) + V[(a,/2a,)2 – (a,/a,)) (= [{a, +...


PROBLEM 21 - 0517:<br>Write a subroutine which computes<br>the roots of the quadratic<br>equation a,x2 + a,x + a, = 0<br>according to the quadratic<br>formula:<br>X12 = (-az/2a,) + V[(a,/2a,)2 –<br>(a,/a,))<br>(= [{a,<br>+ v(a?, - 4a,a,)} / 2a,])<br>(START<br>SUBROUTINE QUAD<br>COMPUTE, DISCRIMINANT<br>(DISC)<br>DISC<O<br>COMPUTE<br>VFDISC<br>COMPUTE<br>VDISC<br>COMPUTE REAL<br>PARTS<br>COMPUTE REF<br>PARTS<br>COMPUTE<br>IMAGINARY<br>PART<br>IMAGINARY<br>PART = 0<br>

Extracted text: PROBLEM 21 - 0517: Write a subroutine which computes the roots of the quadratic equation a,x2 + a,x + a, = 0 according to the quadratic formula: X12 = (-az/2a,) + V[(a,/2a,)2 – (a,/a,)) (= [{a, + v(a?, - 4a,a,)} / 2a,]) (START SUBROUTINE QUAD COMPUTE, DISCRIMINANT (DISC) DISC

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here