Question: This is my Matlab code, in the symsum part how do I only sum the odd terns from 1 to a specific n instead of
This is my Matlab code, in the symsum part how do I only sum the odd terns from 1 to a specific n instead of all the terms
%RPHW9PartB clc clear syms n D = 3; Siga = 2; B=pi.*1/20; fun = @(x) (10-abs(x)).*cos(B.*x); Sn = (2/20)*integral(fun,-10,10); L = sqrt(D/Siga); An = (Sn/Siga)/(1+((B*n.^2).*(L.^2))); x = linspace(-10,10); flux = symsum(An,n,1,1)*cos(pi*x/20);
plot(x,flux)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
