Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5.2 Develop a Sub procedure to determine the real roots of the quadratic equation ax + bx + c = 0. Recall that the

5.2 Develop a Sub procedure to determine the real roots of the quadratic equation ax + bx + c = 0. Recall that the real roots can be determined with the quadratic formula -b b2-4ac 2a (5.5) (5.6) In VBA, this formula would be implemented as x1 = (-b + Sqr(b ^ 2 - 4 * a * c)) / (2 * a) (-bSqr(b 2 - 4 * a * c)) / (2 * a) x2 = Test your program for the following cases: a = -1, b = 8, c = 2; and a = 1, b = 4, c = 1. In addition, try a case that yields an imaginary root: a = 7, b = 3, c1. What happens?

Step by Step Solution

3.41 Rating (148 Votes )

There are 3 Steps involved in it

Step: 1

Here is a VBA Sub procedure that calculates the real roots of a quadratic equation based on the give... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Document Format ( 2 attachments)

PDF file Icon
663df56326acc_960772.pdf

180 KBs PDF File

Word file Icon
663df56326acc_960772.docx

120 KBs Word File

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Numerical Methods For Engineers

Authors: Steven C. Chapra, Raymond P. Canale

5th Edition

978-0071244299, 0071244298

More Books

Students also viewed these Programming questions

Question

Explain the terms paternalism and consumer sovereignty.

Answered: 1 week ago