On the diversity and frequency of code related to mathematical formulas in real-world Java projects.

计算机科学 Java 编码(集合论) 多样性(政治) 程序设计语言
作者
Oliver Moseler,Felix Lemmer,Sebastian Baltes,Stephan Diehl
出处
期刊:arXiv: Software Engineering
标识
DOI:10.1016/j.jss.2020.110863
摘要

In this paper, the term formula code refers to fragments of source code that implement a mathematical formula. We present empirical studies that analyze the diversity and frequency of formula code in open-source-software projects. In an exploratory study, we investigated what kinds of formulas are implemented in real-world Java projects and derived syntactical patterns and constraints. We refined these patterns for sum and product formulas to automatically detect formula code in software archives and to reconstruct the implemented formula in mathematical notation. In a quantitative study of a large sample of engineered Java projects on GitHub we analyzed the frequency of formula code and estimated that one of 700 lines of code in this sample implements a sum or product formula. For a sample of scientific-computing projects, we found that one of 100 lines of code implements a sum or product formula. To assess the need for tool support, we investigated the helpfulness of comments for program understanding in a sample of formula-code fragments and performed an online survey. Our findings provide first insights into the characteristics of formula code, that can motivate further studies on the role of formula code in software projects and the design of formula-related tools.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
建议保存本图,每天支付宝扫一扫(相册选取)领红包
实时播报
ta给盖亚的求助进行了留言
1秒前
3秒前
脑洞疼应助东方幼南采纳,获得10
4秒前
Enisbao发布了新的文献求助10
7秒前
9秒前
wxwmb完成签到,获得积分10
10秒前
11秒前
dawuxiaohui完成签到,获得积分10
12秒前
12秒前
13秒前
无情的火完成签到,获得积分20
13秒前
刻苦不弱发布了新的文献求助10
14秒前
15秒前
TSUNA发布了新的文献求助10
15秒前
present发布了新的文献求助10
15秒前
闪闪的YOSH完成签到,获得积分10
16秒前
胺碘酮完成签到 ,获得积分10
17秒前
静鸭发布了新的文献求助30
17秒前
17秒前
咎不可完成签到,获得积分10
18秒前
18秒前
18秒前
华仔应助无问采纳,获得30
19秒前
txy发布了新的文献求助10
20秒前
20秒前
21秒前
benben应助huaming采纳,获得10
23秒前
24秒前
25秒前
25秒前
Qing完成签到,获得积分10
26秒前
27秒前
27秒前
28秒前
cctv18应助姬如千泷采纳,获得10
29秒前
meizi0109完成签到 ,获得积分10
29秒前
31秒前
jinjinjin发布了新的文献求助10
31秒前
angelinekitty完成签到,获得积分10
31秒前
无问发布了新的文献求助30
32秒前
高分求助中
Bioinspired Catalysis with Biomimetic Clusters 1000
Teaching Social and Emotional Learning in Physical Education 900
The Instrument Operations and Calibration System for TerraSAR-X 800
Lexique et typologie des poteries: pour la normalisation de la description des poteries (Full Book) 400
Sustainable Land Management: Strategies to Cope with the Marginalisation of Agriculture 400
Transformerboard III 300
Polyvinyl alcohol fibers 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 有机化学 工程类 生物化学 纳米技术 物理 内科学 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 电极 光电子学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 2351415
求助须知:如何正确求助?哪些是违规求助? 2057255
关于积分的说明 5126351
捐赠科研通 1787835
什么是DOI,文献DOI怎么找? 893133
版权声明 557070
科研通“疑难数据库(出版商)”最低求助积分说明 476443