⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wip.m

📁 LiScNLS is a Matlab application for the numerical study of some nonlinear differential equations o
💻 M
字号:
function I=wip(f,g,wipr,wint,dom)
% f: q columns and g: p columns, representing values of 
%    some q respectively p functions at the Legendre grid
% wipr: weight column of the inner product - values at the Legendre grid
% wint: Gauss quadrature weights
% dom: working interval
% I: p rows and q columns, represents the weighted inner product of f by g 
[m,q]=size(f);[n,p]=size(g);
if n~=m disp('n~=m');return;end;
gg=repmat(wint'.*wipr,[1,p]).*g;
I=(dom(2)-dom(1))/2*(f'*gg)';

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -