answersLogoWhite

0


Best Answer

First rewrite the quadratic equation in the form: ax2 + bx + c = 0 where a , b and c are constant coefficients. Clearly, a is not = 0 for if it were then you would have a linear equation and not a quadratic.

Then the roots of the quadratic are:

x = [-b +/- sqrt(b2 - 4ac)]/2a

where using the + and - values of the square root result in two solutions.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create a function to calculate the roots of any given quadratic equation?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How is the St. Louis Arch an example of a Quadratic Function?

The St. Louis Arch is in the shape of a hyperbolic cosine function It is often thought that it is in the shape of a parabola, which would have a quadratic function of y = a(x-h)^2 + k, where the vertex is h, k.


How do you create DFD for solving general quadratic equation?

bhoosde ke ans to de


What is an application for a quadratic equation in real life?

A quadratic equation could be used to find the optimal ingredients for a mixture. Example: if you are trying to create a super cleanser, you could make a parabola of your ingredients, finding the roots of the equation to find the optimal amount for each ingredient.


Given a number. square it. then subtract the sum of twice the number and 4 The result is zero. Find the number?

You want to create an equation for this. The equation should look like this: x^2 - 2x + 4 = 0 Use the quadratic equation to solve it.


What are some examples of quadratic equation?

x to the power of a whole number, like y=x to the power of 3 or y= x to the power of 6, that will create a parabola


How can you decide what graph equation and function type?

Create a scatter plot. That might give some indication of the function type. Try out different function. Once you get experience it will come easier.


Why is force needed?

Force happens when an object of mass is accelerated, and the equation to calculate force is : force=mass/acceleration


How can you insert a quadratic formula in your document on Microsoft word?

To insert a quadratic formula (or any other scientific formula) into a Word document, go toInsert (tab) > Equations (under the Symbols block)From there you can either select the format of the formula you would like to insert if a template is available (there is a template already for quadratic equations) but if there isn't one, can either download on from Office.com OR create your own by clicking Insert New Equation.


Can you create a quadratic equation with the solution being -5?

Yes, this can be done this way:(x-(-5))(x+a)=0, where a is any (positive or negative) numberThis simplifies to: (x+5)(x+a) = 0or written as quadratic: x2+(a+5)x+5a = 0Solutions: x1 = -5 and x2 = -a,so if a=5 the equation shortens to (x+5)2=0 ( or x2+10x+25=0 )and there will be only one solution: x1,2 = -5


What can you not create using a word processing application?

A spreadsheet. Spreadsheets usually rely on formulae to calculate numbers. That function is not part of a word-processor.


If you have a point on a line what else is needed in order to create an equation?

If a point on a line is already known, what else is needed in order to create an equation


What is the way to create a function in PHP?

function function_name() { .................... }