数值积分方法的比较教学研究与实验刘鹏飞
几种常用数值积分方法的比较

几种常用数值积分方法的比较数值积分是一种计算数学中定积分的方法。
常用的数值积分方法有梯形法、辛普森法和复合梯形法。
这些方法在实际计算中具有不同的优点和适用范围。
梯形法是最简单的数值积分方法之一、它基于求取定积分的梯形面积近似值。
梯形法将积分区间等分为若干个小区间,然后计算每个小区间的梯形面积,并将这些梯形面积相加得到最终的近似值。
梯形法的优点是简单易懂,计算速度较快。
然而,它的精度相对较低,特别是在非平滑函数的情况下。
辛普森法是一种更精确的数值积分方法,它基于使用二次多项式逼近函数曲线。
辛普森法将积分区间等分为若干个小区间,然后对每个小区间内的函数曲线进行三次插值,计算出每个小区间的积分值,并将这些积分值相加得到最终的近似值。
辛普森法的优点是比梯形法更精确,对于平滑函数的近似效果较好。
然而,在处理非平滑函数时,辛普森法的效果可能不如预期。
复合梯形法是对梯形法的改进和扩展。
它将积分区间分为若干个小区间,并在每个小区间内使用梯形法进行积分计算。
然后将这些小区间的积分值相加得到最终的近似值。
复合梯形法的优点是可以通过增加小区间的数量来提高精度。
它在实际计算中被广泛使用,特别是对于非平滑函数的积分计算。
在比较这些常用的数值积分方法时,有几个关键的因素需要考虑。
首先是计算精度,即方法的近似值与实际值的误差大小。
其次是计算复杂度,即使用方法计算积分所需的计算量和时间。
另外,还要考虑方法的适用范围,如对于平滑函数和非平滑函数的效果。
此外,与其他数值方法相比,这些方法的优点和局限性也需要考虑。
综合来看,梯形法是最简单且计算速度较快的数值积分方法,但精度相对较低。
辛普森法在平滑函数的近似计算中效果较好,但对非平滑函数的处理可能不理想。
复合梯形法是一种在实际计算中广泛使用的方法,可以通过增加小区间的数量来提高精度。
根据具体的计算要求和函数特性,可以选择适合的数值积分方法。
同时,还可以根据实际需要结合其他数值方法进行计算,以提高精度和效率。
实验四数值微积分实验报告

实验四数值微积分实验报告实验四:数值微积分实验目的:1. 熟悉数值微积分的基本概念和方法;2. 学习使用Python进行数值积分和数值微分的计算;3. 掌握积分和微分的误差分析。
实验仪器:计算机、Python编程环境实验原理:1. 数值微积分是一种使用数值近似计算积分和微分的方法,适用于无法用解析方法求解的函数,或是为了简化计算过程而采用的方法。
2. 数值积分的常用方法有矩形法、梯形法和辛普森法等。
其中,矩形法是通过将区间分成若干小矩形来近似计算积分值;梯形法是通过将区间分成若干小梯形来近似计算积分值;辛普森法是通过将区间分成若干小曲线来近似计算积分值。
3. 数值微分的常用方法有中心差分法和向前差分法等。
其中,中心差分法是通过用相邻两点的斜率的平均值来近似计算导数值;向前差分法是通过用当前点和下一个点的斜率来近似计算导数值。
实验步骤:1. 导入Python所需的库和模块;2. 编写函数f(x),表示待求解的函数;3. 编写函数rectangular_rule(f, a, b, n),实现矩形法求积分;4. 编写函数trapezoidal_rule(f, a, b, n),实现梯形法求积分;5. 编写函数simpsons_rule(f, a, b, n),实现辛普森法求积分;6. 编写函数central_difference(f, x, h),实现中心差分法求导数;7. 编写函数forward_difference(f, x, h),实现向前差分法求导数;8. 调用以上函数,分别计算给定函数的积分和导数,并对结果进行误差分析;9. 打印输出实验结果。
实验结果:给定函数f(x):f(x) = x^3 + 2x^2 - 3x + 1使用矩形法计算积分,取n=1000,得到积分值为:-1.155使用梯形法计算积分,取n=1000,得到积分值为:-1.156使用辛普森法计算积分,取n=1000,得到积分值为:-1.155使用中心差分法计算导数,取x=1.0,h=0.001,得到导数值为:6.0使用向前差分法计算导数,取x=1.0,h=0.001,得到导数值为:4.0实验结论:1. 数值微积分是一种有效的数值计算方法,适用于无法用解析方法求解的函数;2. 在积分计算中,不同的数值积分方法会得到略有不同的结果,但结果误差一般很小;3. 在数值微分中,中心差分法的结果更加精确,但计算量较大;4. 数值微积分的误差分析是一个重要的环节,需要对结果进行误差评估和控制。
数值分析积分实验报告(3篇)

第1篇一、实验目的本次实验旨在通过数值分析的方法,研究几种常见的数值积分方法,包括梯形法、辛普森法、复化梯形法和龙贝格法,并比较它们在计算精度和效率上的差异。
通过实验,加深对数值积分理论和方法的理解,提高编程能力和实际问题解决能力。
二、实验内容1. 梯形法梯形法是一种基本的数值积分方法,通过将积分区间分割成若干个梯形,计算梯形面积之和来近似积分值。
实验中,我们选取了几个不同的函数,对积分区间进行划分,计算积分近似值,并与实际积分值进行比较。
2. 辛普森法辛普森法是另一种常见的数值积分方法,它通过将积分区间分割成若干个等距的区间,在每个区间上使用二次多项式进行插值,然后计算多项式与x轴围成的面积之和来近似积分值。
实验中,我们对比了辛普森法和梯形法的计算结果,分析了它们的精度差异。
3. 复化梯形法复化梯形法是对梯形法的一种改进,通过将积分区间分割成多个小区间,在每个小区间上使用梯形法进行积分,然后计算所有小区间积分值的和来近似积分值。
实验中,我们对比了复化梯形法和辛普森法的计算结果,分析了它们的精度和效率。
4. 龙贝格法龙贝格法是一种通过外推加速提高计算精度的数值积分方法。
它通过比较使用不同点数(n和2n)的积分结果,得到更高精度的积分结果。
实验中,我们使用龙贝格法对几个函数进行积分,并与其他方法进行了比较。
三、实验步骤1. 编写程序实现梯形法、辛普森法、复化梯形法和龙贝格法。
2. 选取几个不同的函数,对积分区间进行划分。
3. 使用不同方法计算积分近似值,并与实际积分值进行比较。
4. 分析不同方法的精度和效率。
四、实验结果与分析1. 梯形法梯形法在计算精度上相对较低,但当积分区间划分足够细时,其计算结果可以接近实际积分值。
2. 辛普森法辛普森法在计算精度上优于梯形法,但当积分区间划分较细时,计算量较大。
3. 复化梯形法复化梯形法在计算精度上与辛普森法相当,但计算量较小。
4. 龙贝格法龙贝格法在计算精度上优于复化梯形法,且计算量相对较小。
数值计算方法教案数值积分(有添加哦

数值积分教案教案内容:一、教学目标1. 使学生理解数值积分的概念和意义。
2. 培养学生掌握数值积分的基本方法和技巧。
3. 训练学生运用数值积分解决实际问题。
二、教学内容1. 数值积分的概念和意义。
2. 牛顿-莱布尼茨公式及其应用。
3. 数值积分的方法:梯形法、辛普森法、柯特斯法等。
4. 数值积分的误差分析。
5. 数值积分在实际问题中的应用。
三、教学重点与难点1. 教学重点:数值积分的基本方法及其应用。
2. 教学难点:数值积分的误差分析及改进方法。
四、教学方法与手段1. 采用讲授与讨论相结合的方式,让学生深入理解数值积分的原理和应用。
2. 使用多媒体课件,直观展示数值积分的计算过程和应用实例。
3. 布置课后习题,巩固所学知识。
五、教学安排1. 第1-2课时:介绍数值积分的概念和意义,讲解牛顿-莱布尼茨公式。
2. 第3-4课时:讲解数值积分的基本方法(梯形法、辛普森法、柯特斯法等)。
3. 第5-6课时:介绍数值积分的误差分析,讨论改进方法。
4. 第7-8课时:举例讲解数值积分在实际问题中的应用。
5. 第9-10课时:布置课后习题,进行知识巩固。
六、教学活动1. 课堂讲解:通过讲解数值积分的概念和意义,让学生理解数值积分的基本原理。
2. 案例分析:通过分析实际问题,让学生学会将数值积分应用于解决实际问题。
3. 小组讨论:分组让学生讨论数值积分的误差分析和改进方法,促进学生思考和交流。
七、教学评价1. 课后习题:布置相关的课后习题,检验学生对数值积分的理解和掌握程度。
2. 小组项目:让学生分组完成一个数值积分相关的项目,培养学生的实际应用能力。
3. 课堂表现:评价学生在课堂上的参与程度和表现,包括提问、讨论等。
八、教学资源1. 教材:选用合适的数值积分教材,为学生提供系统的学习资料。
2. 多媒体课件:制作精美的多媒体课件,直观展示数值积分的计算过程和应用实例。
3. 网络资源:提供相关的网络资源,如学术论文、教学视频等,供学生自主学习和深入研究。
《数值积分方法》课件

数值积分的分类
按方法分类
可分为直接法和间接法。直接法如蒙特卡洛方法,间 接法如梯形法则、辛普森法则等。
按精确度分类
可分为低阶和高阶方法。低阶方法如梯形法则,高阶 方法如复合梯形法则、复合辛普森法则等。
按使用范围分类
可分为有限区间上的数值积分和无限区间上的数值积 分。
02
直接法
矩形法
总结词:简单直观
在金融建模中的应用
期权定价模型
数值积分方法可以用于求解期权定价模型,从而为金融衍生品定价提供依据。例如,二叉 树模型和蒙特卡洛模拟等。
利率衍生品定价
在利率衍生品定价中,数值积分方法可以用于求解利率期限结构模型,例如LIBOR市场模 型等。
风险管理
通过数值积分方法,可以对金融风险进行量化评估和管理。例如,计算VaR(风险价值) 和CVaR(条件风险价值)等指标,以评估投资组合的风险暴露程度。
自适应插值控制法
总结词
自适应插值控制法是一种通过插值技术来提 高数值积分精度的控制方法。
详细描述
在数值积分过程中,自适应插值控制法利用 插值技术对积分函数进行逼近,以提高数值 积分的精度。这种方法能够根据积分区间和 积分函数的特性,自动选择合适的插值方法 ,以获得更高的积分精度。同时,自适应插 值控制法还能够有效地处理复杂积分函数和
80%
算法设计与实现
数值积分方法的设计与实现是计 算数学的重要研究内容,推动了 科学计算的发展。
数值积分的概念
定义
数值积分是对函数在某个区间 上的定积分进行数值逼近的方 法。
思想
通过选取适当的积分点和权函 数,将定积分的计算转化为数 值逼近问题。
近似公式
常用的数值积分公式有梯形公 式、辛普森公式、复合梯形公 式、复合辛普森公式等。
数值积分方法比较论文素材

数值积分方法比较论文素材在数值计算领域,数值积分方法是一种常用的数值计算技术。
它通过将函数转化为离散的数值点来近似计算函数的积分值。
数值积分方法有多种不同的算法和技巧,各有优劣之处。
本文将介绍几种常见的数值积分方法,并对它们进行比较分析。
一、矩形法(Rectangle Method)矩形法是最简单的数值积分方法之一。
它的基本思想是将积分区间分为若干个小矩形,然后计算这些小矩形的面积之和作为函数积分的近似值。
具体的计算公式如下:\[ \int_a^b f(x)dx \approx \sum_{i=1}^n f(x_i) \Delta x \]其中,n表示分割的矩形数量,x_i是每个矩形的横坐标,Δx是每个矩形的宽度。
矩形法的主要优点是计算简单、直观,适用于函数变化较平缓的情况。
然而,由于它只利用了函数在各个矩形端点的函数值来进行近似,所以精度较低,对于曲线变化剧烈的函数不适用。
二、梯形法(Trapezoid Method)梯形法是另一种常用的数值积分方法。
它的思想是将积分区间分割为若干个小梯形,计算这些梯形的面积之和作为函数积分的近似值。
具体的计算公式如下:\[ \int_a^b f(x)dx \approx \frac{1}{2} \sum_{i=1}^n (f(x_{i-1})+f(x_i)) \Delta x \]梯形法相对于矩形法的优势在于,它不仅利用了函数在端点的取值,还考虑了函数在每个小梯形的中点的取值。
因此,梯形法的精度比矩形法更高,适用于更多种类的函数。
三、辛普森法(Simpson's Method)辛普森法是一种更为精确的积分方法,它通过将积分区间分割为若干个小的三角形形状,计算这些三角形的面积之和来近似函数的积分值。
具体的计算公式如下:\[ \int_a^b f(x)dx \approx \frac{1}{6} \sum_{i=1}^n (f(x_{i-1}) +4f\left(\frac{x_{i-1}+x_i}{2}\right) + f(x_i)) \Delta x \]辛普森法相比于矩形法和梯形法,在积分近似值的计算上更为准确。
吉林师范大学数学学院2006年-2009年科研论文统计汇总表
滕飞
数学建模教育模式探究
教学交流
2008.6
滕飞
基于Hilbert-huang变换的
金融数据周期性分析及应用
长春工业大学学报
2008.3
滕飞
中国股票收盘与通货膨胀的关系研究
吉林师大学报
2008.2
王辉
Periodic Sequences and Chaos in Constant-Length substitution Systems
张双红
高等数学分层教学初探
高等数学通报
2009年6月
(第三期总第七十五期)
张双红
浅谈高等数学分层教学的评价方法
吉林师范大学学报
2009年第30卷第2期
张双红
Logistic模型的Matlab计算与可视化
吉林师范大学学报
2009年第30卷第3期
张双红
关于高等数学分层教学的思考
吉林农业科技学院学报
2009年9月
孙凤琪
Adaboost集成神经网络在冲击地压预报中的应用
EI
吉林大学学报
2009年1期
孙凤琪
广义网络控制系统的能控性能观性
EI
吉林大学学报
2008年5期
徐宝
贝叶斯框架下泊松分布参数的估计
核心
西北师范大学学报
2009年6期
徐宝
加权平方损失下一类刻度
参数指数分布族参数的估计
核心
黑龙江大学学报
2009年6期
刘影
数学课堂教学的新理念
吉林师范大学学报
2008.3
陆媛媛
基于渠道不对称的多品牌
代理零售商的应对策略研究
核心
山东大学学报
运用Matlab实现数值积分的教学研究
运用Matlab实现数值积分的教学研究
刘冲
【期刊名称】《安庆师范学院学报(自然科学版)》
【年(卷),期】2018(024)004
【摘要】针对数值积分知识点,运用Matlab软件的图像功能,结合具体实例阐述了数值积分思想和解题过程,针对复杂函数的突变性,构造差分变步长积分方法,应用Matlab直观地分析了该方法的适用性.运用Matlab使得数值积分知识点的讲解更加直观简洁,有利于学生对数值积分方法的理解和掌握.
【总页数】5页(P101-105)
【作者】刘冲
【作者单位】安庆师范大学数学与计算科学学院,安徽安庆246133
【正文语种】中文
【中图分类】O241
【相关文献】
1.基于Matlab-GUI的数值积分界面设计 [J], 张建斌;赵静;许晓晴
2.研究生《数值分析》课程数值积分的Matlab实现问题的教学研究 [J], 戈慈水
3.Newton-Cotes梯形公式数值积分及其MATLAB范例 [J], 杨亚辉;吴琼扬;何惠进
4.MATLAB作单变量数值微分与数值积分的方法比较 [J], 陈少云
5.运用Matlab实现数值积分的教学研究 [J], 刘冲;
因版权原因,仅展示原文概要,查看原文内容请购买。
数值积分方法的比较教学研究与实验
上十菇
算精度、计算时间的比较,让学生充分理解在数值积分计算中对积分区间正确处理的重要性。用Matlab编程
运行结果显示:
区问数目:[10 20 40 80]
计算结果:[0.6305
o.6228
0.6209
计算时间:[0 0 0 O.0100]
0.6204](精确解为:0.6203)
图形演示:
05 O4 03 02 01
rb
J。f(筇)ak=(b—a).厂(e)
成立。问题是难以准确地算出平均高度.厂(车)的值,对.“车)提供不同的算法,即可得到不同的数值求积方法,如 左(中,右)矩形公式、梯形公式、Simpson公式等。一般地,取[a,b]内若干节点钆处的高度八钆)的加权平均值
来近似平均高度厂(e),即用f(龙。)的线性组合来逼近定积分,得到机械求积公式:
行比较。利用Matlab编写程序运行后结果显示:
I mc/s/on
Trapezoidal
Simpson
[o.7853981635
O.7849814972
0.7853981535
Gauss J 0.7853981635]
万方数据
·25 ·
显然,梯形公式精度较低,Simpson公式较低较好,而Gauss求积公式的精度最高,在给定精度下与精确
为进一步提高求积公式的代数精度,可通过适当选择插值节点和求积系数,使得代数精度最高达到2n+
Go.t岱8一Legendre:M抛一静n池M-=船 1。把求积节点和求积系数视为同等参数求解。既可利用方程组得到,也可借助正交多项式的零点来确定。 而利用具有不同权函数的正交多项式就能得到不同类型的Gauss型求积公式。
2
(菇一髫o)(菇一菇】)…(茗一髫I一1)(菇一髫I+1)…(搿一写。)
数值计算实验报告积分
一、实验目的1. 理解积分的概念和基本性质。
2. 掌握数值积分的方法,包括矩形法、梯形法、辛普森法等。
3. 通过实际计算,加深对积分概念的理解。
二、实验原理积分是微积分学中的一个基本概念,表示一个函数在某区间内的累积变化量。
数值积分是指利用数值方法求解积分,常见的方法有矩形法、梯形法、辛普森法等。
1. 矩形法:将积分区间分成若干等份,用每个小区间的宽度乘以函数在该区间的值,再将所有小区间的乘积相加,得到积分的近似值。
2. 梯形法:将积分区间分成若干等份,用每个小区间的宽度乘以函数在该区间的平均值,再将所有小区间的乘积相加,得到积分的近似值。
3. 辛普森法:将积分区间分成若干等份,用每个小区间的宽度乘以函数在该区间的二次多项式近似值,再将所有小区间的乘积相加,得到积分的近似值。
三、实验步骤1. 选择一个具体的积分问题,例如:计算函数f(x) = x^2在区间[0,1]上的积分。
2. 根据所选择的积分方法,设置相应的参数。
例如,对于矩形法,需要设置小区间的数量n;对于梯形法,需要设置小区间的数量n;对于辛普森法,需要设置小区间的数量n。
3. 计算每个小区间的宽度,例如,对于区间[0,1],小区间的宽度为h = (1-0)/n。
4. 根据所选的积分方法,计算积分的近似值。
5. 比较不同积分方法的近似值,分析误差来源。
四、实验结果与分析以函数f(x) = x^2在区间[0,1]上的积分为例,进行数值积分实验。
1. 矩形法:取n=4,计算得到积分的近似值为0.5625。
2. 梯形法:取n=4,计算得到积分的近似值为0.6667。
3. 辛普森法:取n=4,计算得到积分的近似值为0.6667。
通过比较不同积分方法的近似值,可以发现辛普森法的误差较小,且随着n的增大,误差逐渐减小。
这表明辛普森法在数值积分中具有较高的精度。
五、实验总结1. 本实验通过数值积分方法,计算了函数f(x) = x^2在区间[0,1]上的积分,加深了对积分概念的理解。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Comparative teaching research and experiment ofnumerical integration methodLiuPengfei, XUNainanAbstract:Numerical integration is a very important teaching content in the course of calculation method or numerical analysis. The numerical integration method is also an important method to solve practical problems.In this paper, we discuss the basic ideas of numerical integration method and some in the actual teaching comparative research and experiment teaching. Keywords:Numerical integrationCalculation methodNumerical analysisNumerical experimentsText:The invention of calculus is a great achievement in the history of human science. However, in practical problems, there are still many limitations in solving integral. If the product function is often very complex, can not find the corresponding original function, or the product function is not a function expression, butin the form of a table, its original function is not meaningful.Therefore, it is significant to investigate the numericalintegration method of approximate calculation.1.Basic ideas of numerical integration methodBy the integral mean value theorem, it is known that (x), b] (Qbaf) dx= (B-A) f (N) is set up in [a (x), which is a continuous function f (N). Problem is difficult to accurately calculate the average height of F (n) values, the different algorithms of F (n), you can get different numerical quadrature method, such as left (right) formula of rectangular, trapezoidal, Simpson formula. Generally, [a, b] some node XK at the height of F (XK) weighted average to approximate the average height of F (n), f (XK) linear combination to approximate the definite integral, mechanical quadrature formula:Qbaf(x)dxUEnk=0Akf(xk)Directly using the function computed values in the discrete node function integral, avoids the difficulty in seeking the original function, only need to be determined with the product function andproductAkquadrature coefficients are independent between partitions.In order to ensure the accuracy of the mechanical quadrature formula, it is natural to want accurate simple function as much as possible. Namely, it is required that all the m polynomials are exact, and the m+1 time polynomials are not necessarily accurate. was about coefficient of n + 1 order linear equations. 101n 220011101A A +.....A =b-a A +A x +....+A x =2A X +A X +....+A X =1n n n n n n n n n n b a x b a n -+⎧⎪++⎪-⎪⎨⎪⎪-⎪+⎩Because the coefficient determinant Vandermondedeterminant, and it is not zero,solutionAk isunique.2. Teaching analysis of several commonnumerical integration method2.1 The interpolation type quadrature formulaIn [a, b], to node n Lagrange interpolationpolynomial (x) as f(x) as the approximation function,can be obtained by interpolation quadrature formula:bb n a an bk k a k=0f x dx L x dx =f x l x dx ≈⎰⎰∑⎰()()()()即n bk a k=001110111f x dx A f (x)(x x )(x x )(x x )(x x )(x x )(x x )(x x )(x x )(x x )(x x )k bk k a bk k n a k k k k k k k n l dxdx -+-+≈=-----=-----∑⎰⎰⎰()(x )A The interpolation type integral formula has the accuracy of N sub algebra, and the formula of Ak>0 is stable.2.2 Newton - Cotes formulasThe[a b] is divided into N parts, interpolation quadrature formula for:k 02(n)1(n)(x)dx (x A (b a)(1)(t 1)...(t n)(k!)(n k)!nbk a k n k i k i n k b k a f A f X C t C dt n t k==-≈=----=--∑⎰∑⎰)Called Newton- Cotes formula, the Cotes coefficient is independent of the product function and the integral interval, as long as the interval and other fractions n, can be obtained. Obviously, when n= 1 is a trapezoidal formula; when n= 2 is Simpson formula.2.3 Complex formulaBy the knowledge of definite integral, the definiteintegral is only related to the integral interval.The higher the number of polynomials is, the higherthe degree of smoothness of the function is, and theRunge phenomenon occurs. Such as n> 7, the Newton-Cotes formula is not stable. Therefore, people turnto the integral interval, similar to the piecewiseinterpolation, the integral interval is divided intoa number of small areas, the use of the Newton- Cotesformula between each cell number, and then theresults of each cell is added as a function of thewhole range of the approximation, which is the basicidea of complex. Commonly used compound formula, complex trapezoid formula:1110(x x )(x)((x )(x ))2n bk k n k k a k I f dx T f f --==-=≈=+∑⎰ Complex Simpson formula:212121(x)(f ()4(x )(x ))3mbn k k k a k h f dx S f x f f --=≈==+∑⎰ 2.4 Successive bisection technology and Rombergformula How to determine the appropriate n so that the difference between the approximate value and the truevalue of the allowable range, generally speaking, it is more difficult. And successive half technology is in quadrature process according to the requirements of precision and automatically determine n choose whether or not to meet the requirements of precision, the difference of two minutes before and after twice to estimate the error, such not only reduce the step size, and can keep the original calculating results, reduce the amount of computation. For be obtained:2222221(T T )31(S )151(C )63n n n n n n n n n I T I S S I C C ≈+-≈+-≈+- 222413316115156416363n n n n n n n n n S T T C S S R C C =-=-=- Called Romberg formula. The acceleration effect of Romberg formula is very significant, and thecalculation amount is very small under the same precision.2.5Gauss type quadrature formulaTo further improve the algebraic precision of quadrature formula, through the proper selection of interpolation nodes and quadrature coefficients, the algebraic accuracy up to a maximum of (2n + 1). The quadrature nodes and quadrature coefficients as parameters. The equations can be obtained by using the orthogonal polynomials.You can use orthogonal polynomials with different weighting functions of Gauss type quadrature formulas of different types areparison of several classes of numerical integration methods in TeachingDue to practical problems should be taken into accountwhen the calculation precision and calculation, thus different quadrature formulas have different characteristics:Trapezoidal quadrature formula and Simpson quadrature formula although the calculation is simple, easy to use, but poor accuracy, but for less smooth integrand function sometimes ratio, high precision method is more effective. The effect of the periodic function is more prominent, especially the trapezoidal formula. Newton-Cotes, the n>7 formula is unstable, while the complex trapezoid formula and Simpson formula in the retention of the advantages of low order formula, and can get higher accuracy, so the most widely used in the actual calculation.Romberg method using two points method is simple and easy to program. When the node encryption improve integral approximation degree, previous calculation results can be used for the back, very beneficial to reduce the calculation amount, and the estimation error is relatively simple, can get some integral sequence, if in the convergence of the control, and to check the rows and columns, to function in different state canwith the fastest convergence sequence to approximate the integral.High precision Gauss type quadrature formulas, especially other methods cannot match the calculation of infinite integral and defect integral. But because of the node is irregular, when the node is increased, the function value of the previous calculation can not be used, and the N value of the node value and the coefficient of the different values are also stored in the computer.4.Numerical integration method in the teaching of numerical experimentsIn the teaching process of numerical integration method, the numerical experiments are carried out to improve the students' understanding of the teaching contents and to master the basic method of numerical integration. The Matlab program is written in each method, and the advantages and disadvantages of various numerical integration methods are grasped and understood by comparison.4.1 Comparison of the accuracy of different algorithms with the same number of nodesIn the course of teaching, the accuracy of various methods can be determined, but it is not conducive to students' understanding. Using the powerful function of the popular software, the students can be used to operate the machine. It can be used to realize the accuracy of different numerical integration methods, and it can also improve the students' experimental ability and practical ability.For example the precision parison with the exact solutions of the trapezoidal formula, Simpson formula, Gauss formula. Use Matlab to write programs to run after the results show[Precision Trapezoidal Simpson Gauss][0.7853981635 0.7849814972 0.7853981535 0.7853981635]Obviously, the trapezoidal formula with low accuracy, low Simpson formula and the Gauss quadrature formula is better, the highest precision in a given precision and exact solutions of (Precision) agreement. And then describes the method of various quadrature Matlab commands by calling and format, compared with their ownprogramming, and make the students master the calculation method of numerical integration, in the calculation of actual problems skillfully.4.2 Comparison of the different points of the same algorithm.integrate Using trapezoid formula considering the same algorithm sync long more or different integral interval of scores in the comparison of calculation accuracy and computation time, let the students fully understand in numerical calculation of integral interval the importance of correct treatment. Matlab programming operation result shows that:Interval number:[10 20 40 80]The calculation results:[0.63050.6228 0.6209 0.6204](精确解为: 0.6203)Computation time:[0 0 0 0.0100]Graphical presentation:In short, along with the rise of the mathematics experiment, it has played a positive role in promoting the whole mathematics curriculum teaching reform, but also put forward a severe test to the reform of teaching methods, methods and contents of mathematics curriculum. In the teaching process of the traditional mathematics course, the theory is strong, the more boring, the full use of modern teaching methods, to cultivate students' ability of practical experiments and application of mathematical theory and computer technology to solve practical problems, to cultivate more adapted to the times and social development needs, has a strong practical ability of high qualitypersonnel with very important significance.[References][1] Xu Cui Wei. Introduction of numerical calculation method.2 edition.[M]. Beijing: Higher Education Press, 2002[2] Xi Cheng Mei. Numerical analysis method [M]. Beijing: University of Science & Technology China press, 2003[3] Wang Nengchao. Concise tutorial [M]. Beijing: Higher Education Press, 2004[4] Huang Mingyou. Numerical calculation method [M]. Beijing: Science Press, 2005[5] Li Y F. numerical method [M]. Beijing: Higher Education Press, 1996[6] Jiang Jianfei. Numerical analysis and Matlab experiment [M]. Beijing: Science Press, 2004。