Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem ita second order polynomial is written in the general form: + then the roots (le, the values of x that satisfy the equation) can

image text in transcribed
image text in transcribed
Problem ita second order polynomial is written in the general form: + then the roots (le, the values of x that satisfy the equation) can be determined using the quadratic formular You will be given a 3-element row vector for c) as an input. The goat is to write a function that does the following: 1. Check if the roots of the polynomial defined by b), and care real and distinct. Note that the roots will be reat if the valise under the square root is greater than or equal to zero. They will not be distinct, however, in the value under the square root is exactly equal to zero. Assign an an Integer (uinto datatype) value to the output variable root condition you may choose a different name) as follow The value 2 it the roots are real and distinct The value 1 of the two roots are the same The value o it the roots are not real (le cortplex because the value under the square root is less than o) 2. Assign me solution to the quadratic to the output variable rootvalues (you may choose a different name) according to the following guidelines: In cases where there are two real and distinct roots, compute the two roots and assign them in ascending order to a two-element row vector in when the camera in the theme in wat 2. asign the solution to the quantic to the output variable rootvalues you may choose a different name) according to the following guidelines In cases where there were and distinct roots, compute the two roots and assign them in ascending order to a two-ciement row vector . In cases where the two roots are the same, compute the root and assion is value to both elements in a two-ciment row vector . In cases where the roots are complex, output sign the text complex roots output variable rontvalues Task Write a function quadraticBolver that takes one cement tray input and returns two outputs (root condition and root values), enfelsefelse structure in your code Save e Rosor MATLAB Documentation Function Hodily the function header below function CHAKE THIS HEADER I VOU COOLSTARTS w

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions