Home /
Expert Answers /
Computer Science /
do-it-matlab-please-write-an-algorithm-to-compute-and-print-out-the-roots-real-or-complex-of-the-pa852
(Solved): Do it matlab please
Write an algorithm to compute and print out the roots (real or complex) of the ...
Do it matlab please
Write an algorithm to compute and print out the roots (real or complex) of the quadratic equation ax2+bx+c=0 where a, b, and c real coefficients. Design your algorithm to deal with all possible contingencies. Problem 2 Given the function f(x)=exp(x) 1. Provide the equation and error for the the Taylor series expansion ftn?(x) around x=0 for n=(0,1,2,3). 2. Plot each Taylor series function from ??/2<x<?/2. 3. For each function find the error ?n at ?/4 using the following: ?n=ftn?(?/4)?f(?/4))2? 4. Plot the error ?n on a semi-log y plot as a function of n.