{"title":"设计一个Excel VBA函数来识别更重要的无理数","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":"{\"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}","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
摘要
通常在计算器或计算机上执行的计算,如果结果不是整数,则显示为十进制分数。如果一个值可以用整数和运算(比如根减法运算)来表示,那么解释结果就更容易了。本文介绍了如何在Microsoft Excel中开发一种算法,该算法可以识别最著名的无理数,并将其与操作符号字符一起以文本形式显示。例如,4.330127019给出“5√3/2”。用整数显示无理数也很有用,因为在小数分数中只有无限个小数位数才能显示精确的值,而这是不可能的。因此,所开发的算法可以显示出更易于解释和准确的无理数形式。除了可以写成平方根的结果外,该算法还能够显示可以用π字符表示为圆周率的无理数。在Visual Basic for Applications中实现的Excel算法将所有有理数显示为两个相对素数整数的商。
Designing an Excel VBA function to recognize more important irrational numbers
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.