Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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