Question

7) Use Matlab to compute the following infinite sums ? n=1 7) Find the minima and maxima of the following function f(x) = 1 +

Can someone please help me out with this as soon as possible

0 0
Add a comment Improve this question Transcribed image text
Answer #1

7) We evaluate the given infinite sums using the syntex symsum f, n, a, b) which returns the sum of the series f with respect to the summation index n (symbolic variable) from the lower bound a to the upper bound b .

e.g., to evaluate the series \sum_{n=1}^{4}n^2 we use the syntex symsum(n?, n, 1, 4) .

Here, to evaluate the infinite series \sum_{n=1}^{\infty}\dfrac{3}{n} we use the syntex symsum(3/n, n, 1, Inf) and when we compile it, we get \infty as out put. (see the following figure)

clc; $clear screen symsn Fl = symsum (3/n,n,1, Inf) Command Window New to MATLAB? See resources for Getting Started. F1 = Inf

To evaluate the infinite series انت اية we use the syntex symsum(3/n^3, n. 1, Inf) and when we compile it, we get 3+ 3)=3.6062 ( 3) ~ 1.2021) as out put. (see the following figure)

clc; $clear screen syms n F2 = symsum (3/n^3, n, 1, Inf) 3- Command Window New to MATLAB? See resources for Getting Started.

To evaluate the infinite series \sum_{n=1}^{\infty}\dfrac{3}{n^4} we use the syntex symsum (3/n 4, n. 1, Inf) and when we compile it, we get = 3.2470 (:- *~ 3.1416) 30 as out put. (see the following figure)

clc; $clear screen syms n F3 = symsum (3/n 4,n,1,Inf) Command Window New to MATLAB? See resources for Getting Started. F3 = p

Add a comment
Know the answer?
Add Answer to:
Can someone please help me out with this as soon as possible 7) Use Matlab to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Can someone please help me with this, I'm really stuck. here a sample code provide for the matlab...

    can someone please help me with this, I'm really stuck. here a sample code provide for the matlab: clear all; close all; % ---------- (a) ---------- a = 0.7; % attenuation coef. D = 5; % digital time delay UnitImpulse = [1 zeros(1,???)]; % creat unit impulse, starting from n=0; x = UnitImpulse; y = filter(1, [1 zeros(1, D-1) -a], x); % help filter, do you know the usage of filter() now? n = 0:(length(y)-1); % check length of y[n]...

  • Can someone help me figure out how to write code on Matlab for either of these...

    Can someone help me figure out how to write code on Matlab for either of these two questions? My biggest problem is working with the large factorials which Matlab can't seem to handle 1. Write a code to calculate nas a function of ga, when NA l300, 600, 3000, 6000, NB (200, 400, 2000, 4000), and g 100, plot them and try to find some tendency when N increases (hint: 4 plots). 2. Write a code to calculate the probability...

  • yes you will need matlab software Can someone please help me. attached is the exercise i...

    yes you will need matlab software Can someone please help me. attached is the exercise i am doing in matlab. also attached is the exercise that i am suppose to be doing.also attached is part a of my code and part b. also attached is an error code i am getting. can someone please help me with this. thanks. explain in detail what i am doing wrong and what i need to do to fix it. you use enogn polnts...

  • Can someone please help me with this problem based on cryptography Need help as soon a...

    Can someone please help me with this problem based on cryptography Need help as soon a possible thanks in advance. Compare the two public keys and the common key for DHKE scheme with the parameters p= 521 and a =3 and 1. a = 3 , b= 5 2. a = 400, b= 134 3. a = 228, b = 57 In all cases , perform the computation of the common key for Alice and Bob . This is also...

  • Can someone please help me with all these questions please? I desperately need it asap! Must be d...

    Can someone please help me with all these questions please? I desperately need it asap! Must be done with MATLAB. Thumbs up will be guaranteed! Thank you so much!! A. Discrete Fourier Transform and zero padding For the signals x1[n] and x2[n] answer the following questions: x2 [n] = cos(2m30/100) + 0.5 cos(2nn40/100) 1) Compute and plot the length-N DFT magnitude of signals x1[n] and x2[n] with respect to frequency fr, where f and N is the number of samples....

  • Can someone help me out with this. I can't get my MATLAB to do these correctly,...

    Can someone help me out with this. I can't get my MATLAB to do these correctly, thanks! Solve the following differential equations using the Matlab function "ode45”, ”ode23” or “ode 15s". For all cases use odeset to set the stats to on, so you can see the process for the solver. Plot your result. Use a legend on your plots. (a) y' =-2y y(0) = 5, tfinal = 2 (b) y" + 3 y' + 25 y = 0 y(0)...

  • Could someone please help me figure out how to solve these problems for Fundamentals of Electromagnetics? I've seen...

    Could someone please help me figure out how to solve these problems for Fundamentals of Electromagnetics? I've seen posts for this questions that simply post the converted base vectors and answers, but I'm confused how to convert them in the first place. For example, in part b, I see answers that immediately convert ay into but I can't figure out how that was determined in the first place. Can someone please help me with those steps in particular? Thank you...

  • using matlab to solve this problem as soon as possible thanks use matlab to slove the...

    using matlab to solve this problem as soon as possible thanks use matlab to slove the problem as soon as possible solve the activity of number 1&2&3 by using matlab for this problem i need from you to solve activity one and two and three by using matlab DIRECTIONS: Perform the following using MATLAB. After the simulation, your report must be uploaded in the Moodle Learning system. ACTIVITY I. VECTORS AND ITS OPERATIONS Procedure 1: Define two vectors a and...

  • MATLAB PLEASE MATLAB PLEASE most simple code possible 6. Determine which sequences are average power and plot 5 peri...

    MATLAB PLEASE MATLAB PLEASE most simple code possible 6. Determine which sequences are average power and plot 5 periods. For part (c), show that it is possible to express the sequence using a simple formula. As for the aperiodic signals, just plot 40 samples periodic. Hence, for the periodic ones, find their period (a) an (n) %3D2 cos(풍n + ) sin(n + 좋) 4sin(3Tn- (b) 2(n) (e) ra(n) (d) a(n) COs( sin(n) + 3cox(품n -) sin(동n + 좋) com(품끼) (e)...

  • This is a matlab HW that I need the code for, if someone could help me figure this out it would b...

    This is a matlab HW that I need the code for, if someone could help me figure this out it would be appreciated. The value of t can be estimated from the following equation: in your script file, estimate the value of π for any number of terms. You must ask the user for the desired number of terms and calculate the absolute error/difference between your calculation and the built-in MATLAB value ofpi. Display your results with the following message...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT