% Use this program to reproduce Fig 3.7 from text clear all close all n = 0; for x = 0:.05:4 n = n+1; sx(n) = qua…
quadl 源代码
探索QUADL技术的前沿应用,这里汇集了2个精选资源,专为追求高效数据处理与传输解决方案的电子工程师设计。QUADL以其卓越的数据压缩能力及低延迟特性,在高速通信、大数据存储以及多媒体流处理等领域展现出巨大潜力。无论是深入研究还是实际项目开发,这些资源都将为您提供宝贵的知识和技术…
function demoAdaptGK % demoAdaptGK Compare adaptive Gauss-Kronrod quadrature with quadl % % Synopsis: demoAdaptGK % % Input…
f=inline('cos(15*x)','x'); tic, S=quadl(f,0,3*pi/2,1e-15), toc S1=quad(f,0,3*pi/2) % 采用默认精度 S1=quad(f,0,3*pi/2,1e-15)
clear all n= 0.; for f = 0:.011:1.; x1 = sqrt(100. / 2.) * (1. + f); x2 = sqrt(100. / 2.) * (1. - 2. * f); c2 = qua…
% Use this program to reproduce Fig 3.7 from text clear all close all n = 0; for x = 0:.05:4 n = n+1; sx(n) = qua…
T=4;tao=2;w=2*pi/T; a0=quadl(@singrect,-2,2)/T; % 计算a0 N=10; an=zeros(1,N); bn=zeros(1,N); for k=1:N an(k)=quadl(@rectcos, -2…
function AbsPackedHeight % Gas Absorption in Packed Towers % 计算填料吸收塔的总传质单元数NOG % % 采用自适应Lobatto求积(Adaptive Lobatto quadrature)…
function DistStagesCal % DistStagesCal.m % 计算双组分简单精馏塔的理论板数 % % 主程序采用MATLAB的自适应Lobatto求积(Adaptive Lobatto quadrature)函数quadl() …
%例21-7:采用牛顿-柯特斯法求函数的定积分。 I=quadl('func_int',0,3*pi)
clear all n= 0.; for f = 0:.011:1.; x1 = sqrt(100. / 2.) * (1. + f); x2 = sqrt(100. / 2.) * (1. - 2. * f); c2 = qua…