Designing an Excel VBA function to recognize more important irrational numbers

Z. Fabulya
{"title":"Designing an Excel VBA function to recognize more important irrational numbers","authors":"Z. Fabulya","doi":"10.14232/analecta.2022.1.62-70","DOIUrl":null,"url":null,"abstract":"Calculations typically performed on a calculator or computer show the result as a decimal fraction if it is not an integer. It would be easier to interpret the result if a value could be expressed with integers and operations, such as the root subtraction operation. This article shows how this can be done with a developed algorithm in Microsoft Excel, which recognizes the most famous irrational numbers and displays them in text form together with the character of the operation sign. For example, “5√3/2” is given for 4.330127019. It is also useful to display irrational numbers with integers because only an infinite number of decimal places in a decimal fraction could show the exact value, and that is not possible. So, the developed algorithm can display a more interpretable and accurate form of the irrational number. In addition to the results that can be written as square roots, the algorithm is capable of displaying irrational numbers that can be expressed as the number Pi, using the π character. The Excel algorithm which was implemented in Visual Basic for Applications shows all rational numbers as the quotient of two integers that are relative primes.","PeriodicalId":213647,"journal":{"name":"Analecta Technica Szegedinensia","volume":"55 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-08-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Analecta Technica Szegedinensia","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.14232/analecta.2022.1.62-70","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Calculations typically performed on a calculator or computer show the result as a decimal fraction if it is not an integer. It would be easier to interpret the result if a value could be expressed with integers and operations, such as the root subtraction operation. This article shows how this can be done with a developed algorithm in Microsoft Excel, which recognizes the most famous irrational numbers and displays them in text form together with the character of the operation sign. For example, “5√3/2” is given for 4.330127019. It is also useful to display irrational numbers with integers because only an infinite number of decimal places in a decimal fraction could show the exact value, and that is not possible. So, the developed algorithm can display a more interpretable and accurate form of the irrational number. In addition to the results that can be written as square roots, the algorithm is capable of displaying irrational numbers that can be expressed as the number Pi, using the π character. The Excel algorithm which was implemented in Visual Basic for Applications shows all rational numbers as the quotient of two integers that are relative primes.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
设计一个Excel VBA函数来识别更重要的无理数
通常在计算器或计算机上执行的计算,如果结果不是整数,则显示为十进制分数。如果一个值可以用整数和运算(比如根减法运算)来表示,那么解释结果就更容易了。本文介绍了如何在Microsoft Excel中开发一种算法,该算法可以识别最著名的无理数,并将其与操作符号字符一起以文本形式显示。例如,4.330127019给出“5√3/2”。用整数显示无理数也很有用,因为在小数分数中只有无限个小数位数才能显示精确的值,而这是不可能的。因此,所开发的算法可以显示出更易于解释和准确的无理数形式。除了可以写成平方根的结果外,该算法还能够显示可以用π字符表示为圆周率的无理数。在Visual Basic for Applications中实现的Excel算法将所有有理数显示为两个相对素数整数的商。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
The Situation of Freight Transport and Other Logistics Tasks in Laos Dielectric Monitoring of Microwave Extraction Processes Comparative analysis of meat products made from various chicken meat raw material Development of an IoT based 3D printed Mobile Robot Platform for training of Mechatronics Engineering Students Two sample unpaired T-test power calculation using simulation
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1