![NatsuDDW](/avatars/1814.jpg)
NatsuDDW
11.10.2020 •
Mathematics
Write a program that will solve a quadratic equation: ax2 + bx + c = 0. The program must ask the user to enter the values for a, b and c. It should then determine the discriminant of the parabola and based on the discriminant it should display the real roots: Discriminant = b2 - 4ac > 0 means there will be two distinct real roots. Discriminant = b2 - 4ac = 0 means there will be only one real root. Discriminant = b2 - 4ac < 0 means there will be no real roots. Use the if - then else structure in your program to decide the outcome of the program. User must then use the quadratic equation to solve for x: = − ± √ −
Solved
Show answers
More tips
- C Computers and Internet Log-in: what is it and why do you need it?...
- S Style and Beauty Secrets of Tying a Pareo: 5 Ways...
- F Food and Cooking 10 Reasons Why You Should Avoid Giving Re-Gifts: An Informative Guide...
- S Sport How to wrap boxing hand wraps? Everything you need to know!...
- A Animals and plants 5 Tips for Taking Care of Yews to Keep Them Green and Beautiful...
- H Health and Medicine How to Calm Your Nerves? Expert Tips That Actually Work...
- O Other What is a Disk Emulsifier and How Does it Work?...
- S Sport How to Pump Your Chest Muscle? Secrets of Training...
- C Computers and Internet How to Get Rid of 3pic Infector: Everything You Need to Know...
- S Style and Beauty How to Grow Hair Faster: Real Methods and Advice...
Answers on questions: Mathematics
- M Mathematics Solve the following equation: -15c+7c+1=3-8c...
- M Mathematics Fourteen out of of every sixteen students own a pet. what is the percent of students who own pets...
- M Mathematics Kelsi’s mom has several containers of fruit juice that total 3 whole gallons with a fractional part of a gallon remaining. Which sets of juice containers could Kelsi’s mom have?...
- B Business On January 1, Pharoah Company had 95,000 shares of no-par common stock issued and outstanding. The stock has a stated value of $4 per share. During the year, the following occurred....
- E English What is the central idea in the second part of the passage? The king’s army has protected Egypt from enemies. The king should be honored for his good work. The king has spent a lot...
- S Social Studies What tools do archaeologists use when they are trying to investigate...
Ответ:
x= -b ±√b²- 4ac/2a
Step-by-step explanation:
ax2 + bx + c = 0
Dividing the quadratic equation by a gives
x2 + b/ax + c/a = 0
x2 + b/ax = - c/a
Applying the square formula
(x)^2 + 2(x) (b/2a) + (b/2a)^2= + (b/2a)^2- c/a
(x+b/2a)^2= b²/4a² - c/a
(x+b/2a)^2= b²/4a² - 4ac/4a²
(x+b/2a)^2= b²- 4ac/4a²
Taking square root of both sides gives
(x+b/2a)= ±√b²- 4ac/2a
x= -b/2a±√b²- 4ac/2a
x= -b ±√b²- 4ac/2a
This is called the quadratic formula and it can solve the value for x for the given value of a, b and c for the quadratic equation.
From this it is concluded that
Discriminant = b2 - 4ac > 0 means there will be two distinct real roots. Discriminant = b2 - 4ac = 0 means there will be only one real root. Discriminant = b2 - 4ac < 0 means there will be no real roots.
This is because a square root of a value greater than 0 is possible and gives two values for roots of x.
The square root of a value less than 0 gives a negative number and therefore the roots are an imaginary number.
The square root of a value greater equal to 0 gives a zero leaving behind only one real root.
Ответ:
I think it is done like this but I am not sure.
Simplifying
9 + -4(2x + -1) = 45
Reorder the terms:
9 + -4(-1 + 2x) = 45
9 + (-1 * -4 + 2x * -4) = 45
9 + (4 + -8x) = 45
Combine like terms: 9 + 4 = 13
13 + -8x = 45
Solving
13 + -8x = 45
Solving for variable 'x'.
Move all terms containing x to the left, all other terms to the right.
Add '-13' to each side of the equation.
13 + -13 + -8x = 45 + -13
Combine like terms: 13 + -13 = 0
0 + -8x = 45 + -13
-8x = 45 + -13
Combine like terms: 45 + -13 = 32
-8x = 32
Divide each side by '-8'.
x = -4
Simplifying
x = -4