内容导航:
1、
quad
2、
matlab quadl和quad在对函数文件求积分时该怎么用
1、
quad
英:【kwɑːd】美:【kwɒd】
英:
美:
常用释义:
四角形
n.四方院子;四胞胎之一;嵌条;成套的四件东西
n.(Quad)人名;(英)奎德
复数--quads;第三人称单数--quads;现在分词--quadding;过去式--quadded;过去分词--quadded。
1、I only wish it had a speaker out just to try it with a
quad
box. . .───我只希望它刚才有一位发言者,试图用四方块…
2、His rooms were on the left-hand side of the
quad
.───他的房间在这个四方院的左侧。
3、Advantage of Intels Quad-Core proce.───Intel四核的优势。
4、He missed both of his planned
quad
jumps and will trying to get his confidence back over the next two days.───他忘记了原计划的四周跳,并将努力在之后两天中找回他的自信。
5、Quad-Core Processors Offer Few Advantages for desktops.───四核给桌面电脑带来的优势不大。
6、A strange thing is going on out on the
quad
on Tainans most popular school.───这所台南最著名的学府发生了一件奇怪的事。
7、Quads Imaging Service Center in Braintree, MA, and a pending facility near the customer in Freeport , ME, will manage prepress production.───四影像服务中心布伦特里,硕士,并尚未设施附近的客户自由港,我将管理印前生产。
8、When I first saw her, she was walking across the school
quad
. I stood motionless as if stunned, following her with my eyes.───我第一次见到她时,她正在校园里漫步,我站在那儿,几乎愣住了,目光被她深深吸引。
9、That might have made sense a decade ago, but in todays era of PCs powered by dual- and
quad
-core CPUs, it doesnt.───这种做法在十年前可能合理,但今天电脑由双核-和-四核CPU驱动的时代,情况就不同了。
1、quad day───四天
2、quad spi───四spi
3、bodleian quad───博德莱安四
4、quad bike───n.四轮摩托车;四轮摩托车;沙滩车
5、cubical quad───直角四边形
6、boomless quad───无臂四轮驱动
7、quad r a───n.(Quadra)人名;(西)夸德拉;n.勒脚;正方形的框架
8、by wishtrend quad active boosting essence───由wishtrend quad主动提升精华
9、cubical quad antenna calculator───立方体四天线计算器
2、
matlab quadl和quad在对函数文件求积分时该怎么用
这两个函数都是MATLAB中的内置函数,用于实施自适应求积分,都是根据Gander和Gautschi构造的算法编写的。
quad:使用辛普森求积,对于低精度或者不光滑函数效率更高
quadl:该函数使用了称为洛巴托求积(Lobatto Quadrature)的算法,对于高精度和光滑函数效率更高
你的问题是,输入和输入的向量长度不同导致的,建议你参考:
I=quad(func,a,b,tol);
func是被积函数,a,b是积分限,tot是期望的绝对误差(如果不提供,默认为1e-6)
例如对于函数f=xe^x在【0,3】上求积分,显然可以通过解析解知道结果是2e^3+1=41.171073846375336
先创建一个M文件xex.m
内容如下:
function f=xex(x)
f=x.*exp(x);
end
然后调用:
>> format long
>> format compact
>> quad(@xex,0,3)
ans =
41.171073850902332
可见有9位有效数字,精度还是蛮高的。
如果使用quadl:
>> quadl(@xex,0,3)
ans =
41.171074668001779
反而只有7位有效数字。