资源预览内容
第1页 / 共25页
第2页 / 共25页
第3页 / 共25页
第4页 / 共25页
第5页 / 共25页
第6页 / 共25页
第7页 / 共25页
第8页 / 共25页
第9页 / 共25页
第10页 / 共25页
亲,该文档总共25页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
用 VC+实现数学函数图形绘制信息与计算科学 99-1 毕业论文 第 1 页 用 VC+实现数学函数图形绘制Use the VC+ to realize drawing figures of mathematic functions指导教师 :付勇制作人: 刘海,卢文娟Tutor: Fu yong Producer:Liu hai 、 Lu wenjuan摘要Visual C+(以下简称 VC+) 是面向对象与可视化软件开发工具中比较成熟的一类。MFC 是 VC+中直接由 Microsoft 提供的类库,它集成了大量已定义好的类,我们可以根据需要,调用相应类,或根据需要自定义类。正是基于 MFC 的这种特性,我们试图设计出具有封装性、独立性的功能模块- 函数数据生成模块,函数曲线输出模块,模块之间的桥梁是由模板类 CArray 派生的 CPoint 类数组充当的。函数数据生成模块用来实现对函数的设置并获得采样点,数组得到采样点数据并将其传递到输出模块中。从整体来看,实现了各程序模块的独立性,使得在函数模块中可任意添加、删除函数,可使用不同的DC 和 GDI,可实现不同的输出方式,整个工程在函数绘图功能上是无限扩展的。经过反复的调试和检验,我们实现了预期目标。我们的主要目的是尝试VC+在数学函数绘图方面的功能和应用。这是对 VC+的探索,也是对数学函数绘图多样化的尝试。关键字数学函数 图形绘制 模板数组 三次样条用 VC+实现数学函数图形绘制信息与计算科学 99-1 毕业论文 第 2 页 【Abstract】Visual C+ is one of the object oriented and visual software developer ,which is more mature than others . MFC is a class warehouse which is supplied by Microsoft ,and it contains a great deal of defined classes .we can transfer the corresponded class if necessary ,or give a fresh definition according our needs . Exactly based on MFC this kind of character, we try to design out the function mold which have the function to pack the class and be independent -Mold for creating Function data, Mold for outputting the function curve, mold piece of born mold piece be sent by Cpoint Array rared by template CArray.The first mold is to make out sets for the function and get data we need which will be sent to the defined array,so now the array have the data that is to be got by the second mold.From whole project,we can see the independence of each mold,and exactly we may increase and decrease functions if necessary,we even can use different DC and GDI to realize the customed exportation method by which we can have a new view of the function curve. So, the function of the project can be extended freely.after repeatedly debugging and examining,we achieve our purpose.The most important thing we are trying is to find a way to connect the VC+ and the figures of mathmetic functions.This is not only a exploration to VC+,but also a attempt for realizing diversifing the mathmetic functions. 【Key words】Mathematic functions drawingfigures template array tripline 用 VC+实现数学函数图形绘制信息与计算科学 99-1 毕业论文 第 3 页 目 录用 VC+实现数学函数图形绘制 .1Use the VC+ to realize drawing figures of mathematic functions .1摘要 .1关键字 .1一、引言 .4二、 设计思路 .52.1 总体结构的设计 .52.2 基本结构的设计 .62.3 面临的问题 .62.4 解决问题的方法 .6三、实现三次样条函数绘图 .103.1 函数定义 .103.2 边界条件 .103.3 函数表达式 .113.4 算法 .123.5 程序实现 .123.6 效果 .14四、结论 .16参考文献 .18附录 .
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号