基于蒙特卡罗法的图形面积估算
2020-09-22张丽娜黄有新袁媛崔平曾嘉健
张丽娜 黄有新 袁媛 崔平 曾嘉健



摘 要:针对面积估算普遍存在于工程计算当中,工作量大,计算复杂的实际情况,开展了基于计算机高级语言课程的面积估算研究,以蒙特卡罗抛洒法估算图形面积实现层次分明的定积分计算,有效解决了面积估算过程中计算的复杂度,引领学生产生高成就感的深度学习行为,训练了计算思维能力。
关键词:蒙特卡罗方法;深度学习;计算机高级语言;定积分
中图分类号:TP311.1 文献标识码:A
Graph Area Estimation based on Monte Carlo Method
ZHANG Lina,HUANG Youxin,YUAN Yuan,CUI Ping,ZENG Jiajian
(1.Xuzhou University of Technology, Xuzhou 221000, China;
2.Jiangsu Xuzhou Higher Vocational School of Economics & Trading, Xuzhou 221000, China)
zlnzxy@126.com; 357888316@qq.com; 358919180@qq.com;
1659089277@qq.com; 714261756@qq.com
Abstract: Aiming at the heavy workload and complex calculation in Area estimation which is commonly used in engineering calculation, this paper conducts an area estimation research based on computer advanced language course. Monte Carlo scattering method is used to estimate the graph area, and the hierarchical definite integral calculation is realized. This method effectively solves the problem of calculation complexity in the area estimation process, leading students to carry out in-depth learning with high sense of achievement and train themselves the ability of computational thinking.
Keywords: Monte Carlo method; in-depth learning; graph area estimation; definite integral
1 引言(Introduction)
為了防止讲授知识变得空洞死板,保证学生的深度学习、培养学生的计算思维能力、确保学生的中心地位,进行教学案例的选择与设计,在具体教育情境中设置理论应用的描述,展开讨论具体案例情境下的问题解决的实施方案[1]。托尔(Towl.A.R.)曾指出:“一个出色的案例,是教师与学生就某一具体事实相互作用的工具;一个出色的案例,是以实际生活情景中肯定会出现的事实为基础所展开的课堂讨论”。
土木工程量计算应用中,常用到求建筑物截面面积,进而对土方、石方计算工程量,Python程序设计可以在不规则图形上计算出其面积,实现建筑物截面计算。为此选择了大一学生正在学习的定积分求面积,开展基于蒙特卡罗方法的Python程序设计,辅以腾讯课堂直播加QQ群讨论授课模式,选择超星学习通平台提交实验作业检验应用成果。
2 蒙特卡罗方法介绍(Introduction of Monte Carlo method)
蒙特卡罗方法起源于1777年法国数学家布丰(Georges Louis Leclere de Buffon)提出的利用投针实验的方法求圆周率π。……
