Question: Use function a script on matlab please! Ask the user to enter the values for the three constants ( a , b , c )

Use function a script on matlab please!
Ask the user to enter the values for the three constants (a,b,c) of the quadratic equation
ax2+bx+c=0
Use an if-elseif-else-end structure to warm the user if b2-4ac>0,b2-4ac=0, or b2-4ac0. If b2-4ac0, determine the solution x 1 and x 2. Use the following to double-check the functionality of your function. Fill the answer in the blank.
a) Use a=1,b=2,c=-1(Keep 2 digits after decimal point for your solutions)
x1=
x2=
b) Use a=1,b=2,c=1(using whole number here)
x1=
x2=
A
c) Use a=10,b=1,c=20
What is the value b2-4ac=
A
Can you get 1,2 with real number solution for case c
Use function a script on matlab please! Ask the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!