![(3). /4 marks] When one applies the quadratic formula 4ac -b+ Vb -4ac -b- 2a 2a 0, where b<0 to solve a quadratic equation, a](http://img.homeworklib.com/images/1522e41c-b91d-480a-9323-f38b6f7e2942.png?x-oss-process=image/resize,w_560)

2.[12 marks] The following problems cellation error. are about roundoff error - Can- Determine a way...
Help with MATLAB.
i did like
input('enter the coefficients of a quadratic equation "Ax2 + Bx
+ C = 0"')
fx=(-B+sqrt(B^2+4*A*C))/(2*A);
i just dont know how i can ask the user to input three
(A,B,C)?
thanks!
EXERCISE 6 Ask user to enter the coefficients of a quadratic equation, Ax² + Bx + C = 0, i.e. A, B, and C, and calculate the roots of the equation using the quadratic formula, ., --B+VB? - 4AC 2A
7. Give the formula of avoiding roundoff error to solve each of the fol- lowing problem and compute the numerical values. All the results are approximated to 4 digits with rounding arithmetic. (1). Find the roots of the quadratic equation 123 1 2+ 1 0 4 6 (Hint: first observe b and 62 - 4ac) -5+ b2 - 4ac c/a (Answer:21 22 = ; 21 = 92.24, 22 2a I 1 10-3) 5.420 x 9 (2). Compute In (50 –...
please answer this question with python.
Write a program to solve the quadratic equation ax^2 + bx + c = 0 using the standard quadratic formula x = -b plusminus Squareroot b^2 - 4ac/2a or the alternative formula x = 2c/-b Squareroot b^2 - 4ac. Your program should accept values for the coefficients a, b, and c as input and produce the two roots of the equation as output. Your program should detect when the roots are imaginary, but need...
Question 1 of 8, Step 2 of 2 1/12 Correct Consider the following quadratic equation: y2 - 8y + 1 = 0 Step 2 of 2: Use the discriminant, b2 - 4ac, to determine the number of solutions of the given quadratic equation. Then solve the quadratic equation using the -b + b2 - 4ac formula y = 2a Answer Keypad Select the number and type of solutions. Then, enter the solutions. Previous Step Answer Selecting an option will display...
Rule book: 1.)Must be Python - 2.) no imported module (ie cmath) - no can do on the imports... pure code.. 3.) numbers are float - not integer. Here's the prompt: (Algebra: solve quadratic equations) The two roots of a quadratic equation ax^2 + bx + c = 0 can be obtained using the following formula: r1 = (-b + sqrt(b^2 - 4ac)) / (2a) and r2 = (-b - sqrt(b^2 - 4ac)) / (2a) b^2 - 4ac is called...
A quadratic equation is generally represented as, ax^2 + bx + c The root(s) of the above quadratic equation is computed using the following formula, root1 = (-b + sqrt(D))/ 2a root2 = (-b - sqrt(D))/2a Where D is the discriminant of the quadratic equation and is computed as, D = b^2 - 4ac Given the value of D, the roots of a quadratic equation can be categorized as follows, D > 0 : Two distinct real roots D =...
2. The roots of the quadratic $a x^2 + b x + c$ are given by $$\frac{-b \pm \sqrt{b^2-4ac}}{2a}$$ If $b^2-4ac <0$, the quadratic has no real roots. Write a function to calculate the real roots of a quadratic. The function should have 3 arguments, *a*, *b* and *c*. If $b^2-4ac <0$, the function should print "quadratic has no real roots", and then return(NULL). Otherwise, the function should return a vector of length 2, those being the real roots (which...
6. Following is a statement of a theorem which can be proven using calculus or precalculus mathematics. For this theorem, a, b, and c are real numbers. Theorem If f is a quadratic function of the form f (x) - ax2 + bx + c and a < 0, then the function f has a maximum value when x -b 2a Using only this theorem, what can be concluded about the functions given by the following formulas? (a) g (x)-8x2...
c++ language
TECH 1211 Computer Programming Name Test 2 Hands-On-Program B Spring 2020 Write a program that uses the quadratic formula to solve quadratic equations. Background Given the format for a quadratic equations: aX? +BX+C =0 The coefficient of the X term is the number a. The coefficient of the X term is the number b. The value of c is any non-zero constant. These values can be positive, negative or zero. You can find the solution to this equation...
HICULTUULUULULUI 2 Task 2 - Trapezium Rule (Maximum Mark 10) Find the equation of the line through the points 1 - ...) a | and B(x) and find an expression for the area under this line between the points A and B. Explain carefully how your result can be used to prove the general formula for the Trapezium Rule. Notes: . This part of the assignment is testing that you can find the equation of a line and use this...