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)
quadl 源代码
探索QUADL技术的前沿应用,这里汇集了2个精选资源,专为追求高效数据处理与传输解决方案的电子工程师设计。QUADL以其卓越的数据压缩能力及低延迟特性,在高速通信、大数据存储以及多媒体流处理等领域展现出巨大潜力。无论是深入研究还是实际项目开发,这些资源都将为您提供宝贵的知识和技术…
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…
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…
%用trapz在区间-1 x=-1:0.12:3; %粗略计算积分产生x的序列 >> y=humps(x); >> area=trapz(x,y) %计算积分 >> x=-1:0…
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…
format long; [y,kk]=quad('myerrf',-8,8), [y,kk]=quad('myerrf',-15,15), f=inline('1/sqrt(2*pi)*exp(-x.^2/2)','x'), [y,kk]=qu…
clear all n= 0.; for f = 0:.011:1.; x1 = sqrt(100. / 2.) * (1. + f); x2 = sqrt(100. / 2.) * (1. - 2. * f); c2 = qua…