1) Using Matlab, find all real and complex roots of the following polynomial equation:
(x-1)(x-2)(x-3)(x-4)(x-5)(x-6)(x-7)=8
2) Using Matlab, find the root for the following system of equations. Both x and y are positive.
a: (x^2)cos(y)=1
b: e^(-4x)+1
1.
function y = f(x)
y = (x-1)(x-2)(x-3)(x-4)(x-5)(x-6)(x-7) - 8;
%Find the zero of f(x) near 0.
fun = @f; % function
x0 = 0; % initial point
z = fzero(fun,x0)
OR
roots(p)
where p is a vector containing value of coefficient of x7,x6......constant term.
2. a)
syms x y
eqn = (x^2)cos(y) == 1;
solx = solve(eqn,x)
soly = solve(eqn,y)
b) no root exists for this equation you can try it with fzero
1) Using Matlab, find all real and complex roots of the following polynomial equation: (x-1)(x-2)(x-3)(x-4)(x-5)(x-6)(x-7)=8 2)...
State the degree of the following polynomial equation. Find all of the real and imaginary roots of the equation, stating multiplicity when it is greater than one. X6 10x5 25x4-0 The degree of the polynomial is Zero is a root of multiplicity is a root of multiplicity 2.
1a): Find the roots of the following polynomial equations using matlab: f(x) = x^5 − 9x^4 + 31x^3 − 51x^2 + 40x − 12 f(x) = x^5 − 11x^4 + 47x^3 − 97x^2 + 96x − 36 b): Find the coefficients of two polynomial equations in matlab given the following sets of roots: r1 = [ 100 25 50 5 10 ] r2 = [ 11 22 33 0 55 ] c): Create a figure with four subplots, each showing...
Find all roots, both real and complex, of the following polynomials. When appropriate, given the multiplicity of the root. 11. 2x3 + - 4x +1 12. 8x4 + 4x3 - 6x2 – 5x - 1 13. 3x3 + 9x2 +2+3 14.24 +223 +222? + 50c - 75 15. Find the amplitude, frequency, and period of the function f (t) = 4 sin(2t + 7).
State the degree of the polynomial equation. 31) 3(x + 6)2(x - 6)3 = 0 Find all of the real and imaginary roots, stating the multiplicity of each. 32) (x + 5)2(x - 1) = 0 Find the product. 33) (x - 7i)(x + 7i) Find all real solutions to the equation. 34) Vx + 13 = x - 7 Find all real and imaginary solutions. 35) -2x3 + 2x2 + 8x - 8 = 0
4-6 on matlab 4. Write a program in a script file that determines the real roots of a quadratic equation ax2+bx+c 0 When the file runs, it asks the user to enter the values of the constants a, b, and c. To calculate the roots of the equation the program calculates the discriminant D, given by: D b2-4ac When D 0, the program displays message "The equation has two roots," and the roots are displayed in the next line. When...
6. Find the general solution of the equation. If the roots are complex (imaginary numbers) write as a linear combination 7. Solve using the method of undetermined coefficients. Find e particular solution, and then give the general solution. 8. Solve using the method of undetermined coefficients. Find of cos and sin. z', + 42 + 4x 0 the particular solution, and then give the general solution. -3r +2r sin(t) 9. Solve using the method of undetermined coefficients. Find the particular...
Can someone please help me out State the degree of the following polynomial equation. Find all of the real and imaginary roots of the equation, stating multiplicity when it is greater than one The degree of the polynomial is Zero is a root of multiplicity is a root of multiplicity 2. Find a polynomial equation with real coefficients that has the given roots -1, 3,-4 The polynomial equation is x3--o Find a polynomial equation with real coefficients that has the...
Function driver and script file please 4) The polynomial f (x)-0.0074x*-0.284x3+ 3.355x2 12.183x +5 has a real root between 15 and 20. Apply the Newton-Raphson method to this function using an initial guess of xo-16.15. Explain your results. 5) Use the roots MATLAB function to find the roots of the polynomial x x-1-0. Compare your answer to the answer you derived in in question 1. 6) Write the following set of equations below in matrix form. Use MATLAB to solve...
1(a) Find the square roots of the complex number z -3 + j4, expressing your answer in the form a + jb. Hence find the roots for the quadratic equation: x2-x(1- 0 giving your answer in the form p+ q where p is a real number and q is a complex number. I7 marks] (b) Express: 3 + in the form ω-reje (r> 0, 0 which o is real and positive. θ < 2π). Hence find the smallest value of...
Need these done on matlab 4. (10%) Given the roots (.--2, x-3.x-8), reconstruct the corresponding polynomial 5. (10%) Add the following polynomials: f(x)- x3-x +3 g(x) x2-8 h(x)-x*+2 6. (10%) Multiply the polynomials from Problem 5.