摘要
如何使用科学计算软件自动与数据库进行交互,实现网页版实验结果的快速输出,共享实验结果并应用于教学工作是大学物理实验领域核心和热点的关注问题。一直探索使用Matlab解决上述问题,但是其Complier二十几万的商业使用费用,使得科学计算函数与数据库通讯和基于Java的网页开发方案有始无终。然而,Python多领域大规模的函数包、基于网页开发的免费、公开、快捷的框架设计快速、有效并轻量级地解决了上述问题。本文在介绍Python科学计算语言,比较Matlab、Python进行网页版实验的技术框架的基础上,完成实验数据的数据读取、科学计算函数库的使用、网页版实验结果的生成,并以光学物理实验劈尖的等厚干涉条纹实验为例完成网页版物理实验的建设。通过本文可以帮助具备Matlab基础的科学实验者,快速实现物理实验的网页版输出。
How to use scientific calculation software to interact with the data base automatically, apply the web version of the experimental results in a fast way, share the results and application is a core and hot problem gai-ning concerns in the university physics experiment field.It is tried hard to solve the problem via Matlab,but the complier,which costs tens of thousands commercially, makes the scientific computing function and database communication based on Java Web development scheme die.However,Python with multi domain large-scale packages , based on web development of free, open, fast design frame, effective and lightweight solves this prob- lem.This paper introduced the python scientific calculation language,compare the framework between MATLAB and python, how to do the variable assignment, use the scientific computing function library and generate the web version results using the optical physics experimental split tip of the equal thickness interference fringe ex-periment as an example.So this paper can help the Matlab based science researchers to apply the rapid con-struction technology of web page physical experiment in Python.
作者
宫薇薇
祝继常
韩煦
GONG Wei-wei ZHU Ji - chang HAN Xu(Transport and Economic Research Institute,China Academy of Railway Sciences,Beijing 100081)
出处
《大学物理实验》
2016年第5期114-117,共4页
Physical Experiment of College
基金
中国铁道科学研究院基金(2014YJ099)
(2015YJ080)