Consider the cubic equation

Assignment Help Mathematics
Reference no: EM13858047

Consider the cubic equation
ax3 + bx2 + cx + d = 0, (1)
where a, b, c, and d are real input coefficients. Develop a matlab program to find all roots of equation (1) using the appropriate methods. Your program can not use the matlab built-in functions fzero and roots.
You should turn in a .m file cubicxxx.m which contains a matlab function of the form function [rts,info] = cubicxxx(a,b,c,d)
where xxx is your student id, rts is the vector of roots and info is your output message. Your program will be stress-tested against cubic equations that may have
1. random roots; or
2. very large or very small roots; or
3. multiple roots or nearly multiple roots; or
4. less than 3 roots or more than 3 roots.
You will receive credit for a test polynomial only if your program gets the number of roots
correctly, and only then will each correct root (accurate to within a relative error of at most 10^-16,
as compared to the roots function in matlab) receive additional credit.
Your program will receive 0 points if the strings fzero or roots (both in lower case letters)
show up anywhere in your .m file. 

Reference no: EM13858047

Questions Cloud

Synopsis of the film which will be acquired online : synopsis of the film which will be acquired online and edited and an analysis of the moral dilemmas depicted in the film
Developing nutrient declarations on a nutrition facts label : Explain all the steps in developing nutrient declarations on a Nutrition Facts label
Describe several different types of mutations : Describe several different types of mutations, the various mechanisms of mutational repair, and the SOS response.
How fast is the area of the rectangle increasing : 1. The length of a rectangle is increasing at a rate of7cm/s and its width is increasing at a rate of8cm/s. When the length is15cm and the width is9cm, how fast is the area of the rectangle increasing?
Consider the cubic equation : Consider the cubic equationax3 + bx2 + cx + d = 0, (1)where a, b, c, and d are real input coefficients. Develop a matlab program to find all roots of equation (1) using the appropriate methods. Your program can not use the matlab built-in functions f..
Describe in detail the process of aerobic respiration : Describe in detail the process of aerobic respiration
What extent was british divide and rule policy a root cause : Assess the role of violent revolutionaries in India's freedom struggle. What extent was British divide and rule policy a root cause of partition?
Written report of your observations and analysis : The assignment will consist of two parts: 1) a redaction critical analysis of this passage using the provided synopsis (also available on Sakai; 5% of your final grade) and 2) the written report of your observations and analysis
What effect does the indicated mutation of c to a have : What effect does the indicated mutation of C to A have in this sequence?

Reviews

Write a Review

Mathematics Questions & Answers

  What fraction of the time will the stock increase in price

So the question is, in the long run, what fraction of the time will the stock increase in price?

  What price should lamps be sold at to maximize profit

What price should lamps be sold at to maximize profit?

  Find the width of the original piece of metal

You construct a box with a volume of 146 cubic inches from a piece of metal by cutting 4 inch squares from the corners and folding up the sides. Find the width of the original piece of metal.

  Compute the pearson correlation

What are the Sum of Squares between (SSB) and what is the degress of freedom within (dfW)

  How would you create a trinomial that will factor

Choose three integers a, b, and c. (Negative numbers are welcome.) Now use a, b, and c to create a trinomial ax2+bx+c. Can you factor this trinomial? How would you create a trinomial that will factor?

  What is the maximum income

A car rental agency rents 180 cars per day at a rate of 28 dollars per day. For each 1 dollar increase in the daily rate, 5 fewer cars are rented. At what rate should the cars be rented to produce the maximum income and what is the maximum income?

  What is the mass of planet z

Planet Z is 6,000 km in diameter. The acceleration due to gravity on Planet Z is 10.0 m/s2.

  How fast is the distance between the ships changing

At 1 P.M., ship A is 150 km west of ship B. Ship A is sailing east at 35 km/h and ship B is sailing north at 25 km/h. How fast is the distance between the ships changing at 5 P.M.? (Round your answer to one decimal place.)

  Calculate the work done in moving the object

Calculate the work done in moving the object from x = 1 ft to x = 12 ft. (round your answer to two decimal places).

  Find the volume of the resulting solid

The region bounded by the curves x = y^2 +16 and x = -y^2 + 24 is rotated around the y-axis. Find the volume of the resulting solid.

  How much work is done by the man against gravity

If the silo is 90 ft high and the man makes exactly three complete revolutions, how much work is done by the man against gravity in climbing to the top?

  A drug company is measuring levels of oxygenation in patient

A drug company is measuring levels of oxygenation in patients after receiving a test medication. As the researcher, you are interested in whether Group I, which received the medication, has the same oxygenation levels as Group II

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd