Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hello, I am trying to write the quadratic formula in C++ but I can't figure out how

What I have tried:

looking it up, doing it on my own
Posted
Updated 27-Aug-19 5:29am
v4
Comments
Kenneth Haugland 27-Aug-19 12:37pm    
You can write a whole article about this, which some of us did.
Stefan_Lang 30-Aug-19 3:30am    
"What I have tried:

looking it up, doing it on my own"

Have you considered writing a program? Just an idea...

1 solution

You gotta do "something" with the "equation" ...

C++ Program to Find All Roots of a Quadratic Equation[^]
 
Share this answer
 
Comments
Rick York 27-Aug-19 13:30pm    
Nice example except the text talks about the discriminant while the image shows the determinate.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900