价值工程
價值工程
개치공정
VALUE ENGINEERING
2014年
24期
229-230,231
,共3页
大整数类%黄金分割%素数%梅森素数
大整數類%黃金分割%素數%梅森素數
대정수류%황금분할%소수%매삼소수
big integer%golden section%prime number%Manson prime numbers
在许多应用场合都需要高精度的计算,这些计算问题超出了一般程序语言所能表示的最大范围,如精确到100位小数的黄金分割系数计算;在密码问题中的大素数问题;求解梅森素数问题等,都涉及大整数运算。应用Java提供的BigInteger类,可以较好地解决这些问题。研究了应用Java的BigInteger类计算高精度黄金分割系数、100位以上大素数计算、300位以内梅森素数计算问题,给出了Java程序。
在許多應用場閤都需要高精度的計算,這些計算問題超齣瞭一般程序語言所能錶示的最大範圍,如精確到100位小數的黃金分割繫數計算;在密碼問題中的大素數問題;求解梅森素數問題等,都涉及大整數運算。應用Java提供的BigInteger類,可以較好地解決這些問題。研究瞭應用Java的BigInteger類計算高精度黃金分割繫數、100位以上大素數計算、300位以內梅森素數計算問題,給齣瞭Java程序。
재허다응용장합도수요고정도적계산,저사계산문제초출료일반정서어언소능표시적최대범위,여정학도100위소수적황금분할계수계산;재밀마문제중적대소수문제;구해매삼소수문제등,도섭급대정수운산。응용Java제공적BigInteger류,가이교호지해결저사문제。연구료응용Java적BigInteger류계산고정도황금분할계수、100위이상대소수계산、300위이내매삼소수계산문제,급출료Java정서。
Many applications require high accuracy computation, these calculation problem is beyond the maximum range of general programming language that can be represented, such as the golden coefficient calculation of accurate to 100 decimal places; big prime number problem in the password question, solving the problem of Mason prime numbers, which are related to the operation of big integer. These problems can be better solved with the application of the BigInteger class provided by Java. The calculation for high precision gold partition coefficient, more than 100 bits big prime number and more than 300 bits Manson prime numbers is studied by using the BigInteger class in Java, and a Java program is given.