Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use leg word file ) you have used to prod Write a MATLAB function that can be used to solve a quadratic equation: 3ax? -

image text in transcribed
use leg word file ) you have used to prod Write a MATLAB function that can be used to solve a quadratic equation: 3ax? - 4bx +2c=0 The inputs to the function are the three coefficients a, b, and c. Check if the equation has real solutions. If there are no real solution the program should display THERE ARE NO REAL SOLUTIONS', then quit the program. Otherwise, calculate the solutions and display them as shown in the following example ( use the fprintf command showing each solution with 4 decimal points). For example: "The solutions are -3.4135 and 9.7435 Try to solve two quadratic equations with coefficients: [1, b, c) = [1, 2, 4 ) and (a,b,c) = 15-2 3] Submit the m file for your function, and the results of both test runs done in MATLAB (again copy and paste them in the word file)

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions