Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please do in MATLAB 3. The zeroth order cylindrical Bessel function has the Maclaurin series J0(x)=k=0(1)k(k!)21(2x)2k. To observe a Bessel function, excite a wave on
Please do in MATLAB
3. The zeroth order cylindrical Bessel function has the Maclaurin series J0(x)=k=0(1)k(k!)21(2x)2k. To observe a Bessel function, excite a wave on the surface of your morning cup of coffee. J0(x) models the wave height as a function of radius. In MATLAB and Octave values of J0(x) are given by besselj (0,x). (a) Write a MAtLAB function ApproxBessel J0(x,N) to approximate J0(x) as a Maclaurin-Taylor polynomial, J0(x)k=0N(1)k(k!)21(2x)2k, where the input N determines the truncation. For full credit your function must be efficient and use recursion when computing the terms in the sum. Treating MATLAB's value as the exact value, set x=20 and plot the error in your approximation as a function of N for N=1:Nmax. Choose the maximum value Nmax as the smallest integer such that the last term added to the sum has absolute value (Nmax!)21(2x)2Nmax=(Nmax!)2100NmaxStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started