‫Hello, my friends, and welcome back.
‫In this video, we'll review some mathematical concepts regarding how to solve the quadratic equations.
‫Quadratic equations are algebraic equations that have the form A x squared plus b, x plus C equal to
‫zero.
‫Considering this form, the discriminant of a quadratic equation is the value B squared minus four a,
‫c.
‫This value goes inside the square root of the general quadratic formula and determines the type of the
‫solutions that we will have.
‫If the discriminant is positive, the greater than zero.
‫The quadratic equation has two real roots.
‫When D is less than zero, the quadratic equation has no real roots.
‫If the discriminant is equal to zero, the quadratic equation has a repeated or double root.
‫A, B and C are coefficients, and X represents the variable you are solving for.
‫Then we have this general formula which allows us to solve any quadratic equation is the following x
‫equal minus B plus and minus radical B squared minus four, a c over two A Let's jump into Android studio
‫and start creating this application.
‫Open Android Studio, create a new project, select empty Views activity, and I'll name it as quadratic
‫equation solver, click finish.
‫The first step is to design the layout, go to the activity, underscore main and we need to use the
‫data binding library.
‫So for that I'll go to the gradle scripts inside the Android scope.
‫I need to add build features and I need to use data binding equal to true sync.
‫The project data binding library is added successfully and I prepared this background image.
‫It's beautiful to be my background for this layout.
‫I'll place it inside the drawable folder and I'll use the background add drawable back.
‫And here we go.
‫This is our layout.
‫I'll change this text to view and I'll remove it and I'll add three edit texts.
‫Then I need to create a button.
‫Drag and drop it and infer the constraints.
‫And the last step is to create a text view to display the result and the solution of this quadratic
‫equation.
‫So this is our app layout.
‫Three edit text one button and one text view.
‫The second step in adding the data binding library to our application is to create the layout tag and
‫add here inside this tag.
‫I need to add these namespaces.
‫So I'll cut these and paste them here inside the layout.
‫So the now we created our app layout, three edit texts, one button and one text view.