I want to create a Matlab function of the maclaurin series of cos(x), which depends on x and tol, and plot the function for -Lx<=x<=Lx where Lx is a user specified input.
p=input('Enter the value of Lx');
x=-p:0.1:p;
y=1 - (x.^2/factorial(2)) + (x.^4/factorial(4)) -
(x.^6/factorial(6)) + (x.^8/ factorial(8))- (x.^10/factorial(10)) +
(x.^12/factorial(12)) - (x.^14/factorial(14)) + (x.^16/
factorial(16));
plot(x,y)
I want to create a Matlab function of the maclaurin series of cos(x), which depends on...
In MATLAB The value of cos(x) can be approximated using a Maclaurin series + +... cos(x)=1-1 2! 4! 6! Which can be expressed compactly as cos(x) = {(-1)+7 (2(k-1))! 00 2(k-1) k-1 Write Matlab code using a while loop that calculates cos(2) with 5 terms of Maclaurin series. Compare the value with the one calculated with a built-in function cos (2) in Matlab. The following is an expected output from your code: Using the Maclaurin series cos( 2.0) with 5...
Convince yourself that the Maclaurin Series for cos(x) is: A. Write a function script called cos_series that takes that takes as its inputs, x and N and has output given by the sum in the N-term Maclaurin Series approximation for Cos(x). Hint: try a “for loop” and set “format long” in your code. You may use the MATLAB built-in function factorial() B. Check your code by finding the 2-terms, 3-terms, 4-terms, 5-terms and 6-terms Maclaurin Series approximations every 30 degrees...
Find the Maclaurin series for f(x) = cos (x*). (Use symbolic notation and fractions where needed.) cos (x4) = E O Use the found series to determine f(8)(0). (Use decimal notation. Give your answer as a whole or exact number.) f(8)(0) = TRIGONOMETRIC ALPHABET MORE HELP mn 4 of 6 > Compute the limit by substituting the Maclaurin series for the trig function. (Use symbolic notation and fractions where needed.). sin (9x) – 9x + 2 lim X-0
Find the Maclaurin series for the function. (Use the table of power series for elementary functions.) f(x) = (cos(x2))2 f(x) = _______ Find the Maclaurin series for the function. f(x) = x3sin(x) f(x) = _______
7. (a) Use the well known Maclaurin series expansion for the cosine function: f (x ) = cos x = 1 x? 2! + 4! х 6! + (-1)" (2n)! . * 8! 0 and a substitution to obtain the Maclaurin series expansion for g(x) = cos (x²). Express your formula using sigma notation. (b) Use the Term-by-Term Integration Theorem to obtain an infinite series which converges to: cos(x) dx . y = cos(x²) (c) Use the remainder theorem associated...
neat please Find the Maclaurin series for the function f(x) = cos(x/2). Express your answer in sigma notation.
Find the Maclaurin series for the function. (Use the table of power series for elementary functions.) f(x) = cos 4x f(x) = _______
Use a Maclaurin series in this table to obtain the Maclaurin series for the given function. f(x) = 7x cos(2x2) (c) Use part (b) to find a power series for AUX) - 1621) 1x) - -1) ( 2.6 +1 +3 What is the radius of convergence, R? R-6 Find the Maclourin series for FUX) using the definition of a Maclaurin series. Assume that f has a power series expansion. Do not show that Ra(x) +0.1 Rox) = sin( Find the...
1. What is the Maclaurin series for the function sin(x)? Please determine the minimum number of terms needed to compute sin(0.1) accurate to 12 decimal places (rounded), using a) Taylor’s theorem and b) alternating series theorem. Show your work and justify your answers for the above problem. 2. Create two random matrices A and B each of size ? × ?. Write a computer program in Java or Matlab to compute a) D(i, j) = A(i, j) * B(i, j)...
find the maclaurin series for the given function f.) = cos(t)dt Jo