Feeds
提问
Where have I made mistakes in this code
%prob2.m % u’’- 4u’ + 4u = exp(x)+ C; % Subject to u(1) = 0; u(-1) = 0; C=(-4*exp)/(1+(exp)^2); N = 40; [D, x]=che...
6 years 前 | 1 个回答 | 0
1
个回答提问
chebyshev differentiation matrices codes not callable
% check the base case if N == 0; D = 0; x = 1; return; end % create the Chebyshev grid x = cos(pi*(0:N)/N)'; ...
6 years 前 | 0 个回答 | 0
0
个回答提问
Chebyshev differential matrices code not callable
This is the code by tretfen (cheb.m): % CHEB compute D = differentiation matrix, x = Chebyshev grid function [D,x] = ...
6 years 前 | 1 个回答 | 0