Write an matlab function to solve a second-order polynomial

Assignment Help MATLAB Programming
Reference no: EM132103926

Problem ; part 1:

Quadratic equation (Programming code)

Please don't write it on the paper, write it by computer so I can run it through MATLAB

Write an MATLAB function (M-file) to solve a second-order polynomial:

Ax2 + Bx + C = 0

Request input from the user (three numbers: A, B, and C).

Check for real/imaginary roots

Solve mathematically and store the solutions in variables x1 and x2

Return the solutions to the user (x1, x2)

Remember: annotation and comments are very important in the understanding of your code by another (a grader or faculty member) and you will be graded by the functionality of your code AND the quality of your code, including annotation.

Please don't forget to add comment, so any one read the program should understand your thought.

Reference no: EM132103926

Questions Cloud

Draw arrows in the cells to store traceback information : Draw arrows in the cells to store traceback information. What is the score of the optimal global alignment and what alignment(s) achieves this score?
How can an attacker find the three keys with effort : How can an attacker find the three keys with effort in the order of 2112 instead of 2168? Describe the attack in detail.
Briefly explain the purpose of the autn message : The security algorithms and protocols used are negotiated between the operator and the mobile station during authentication.
Calculate and display the total retail price of an item : Write pseudocode for a program that calculates and displays the total retail price of an item sold at a store.
Write an matlab function to solve a second-order polynomial : Write an MATLAB function (M-file) to solve a second-order polynomial. Solve mathematically and store the solutions in variables x1 and x2.
Write the pseudo-code for a good reduction function r : Write the pseudo-code for a good reduction function R() in this problem scenario. Explain any relevant details of your function R().
Design and simulate and verify a 16-bit ripple-carry adder : Design, simulate and verify a 16-bit ripple-carry adder by performing the following additions/subtractions (the values of a and b are given in decimal).
Degrees celsius and the air pressure : A child releases a 6.25L helium balloon in the parking lot of an amusement park where the temperature is 28.50 degrees
What is the most frequently observed byte : Examine the raw hex bytes of the GSM messages, especially the end of the messages. What is the most frequently observed byte.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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