Location:
Search - biginteger
Search list
Description: 实现大整数的加减乘除及堆运算-achieving large integer arithmetic and the Reactor Operators
Platform: |
Size: 25600 |
Author: 杨向前 |
Hits:
Description: C# BigInteger class. BigInteger.cs is a csharp program. It is the BIgInteger class. It has methods: abs() , FermatLittleTest(int confidence) ,gcd(BigInteger bi) , genCoPrime(int bits, Random rand) , genPseudoPrime(int bits, int confidence, Random rand) , genRandomBits(int bits, Random rand) , isProbablePrime(int confidence) , isProbablePrime() , Jacobi(BigInteger a, BigInteger b) , LucasSequence(BigInteger P, BigInteger Q, BigInteger k, BigInteger n) ,max(BigInteger bi) , min(BigInteger bi) , modInverse(BigInteger modulus) , RabinMillerTest(int confidence) , -C# BigInteger class. BigInteger.cs is a cs harp program. It is the BIgInteger class. It has methods : abs (), FermatLittleTest (int confidence). gcd (BigInteger bi), genCoPrime (int bits, Random rand), genPseudoPrime (int bits, int confidence, Random rand). genRandomBits (int bits, Random rand). isProbablePrime (int confidence). isProbablePrime (), Jacobi (BigInteger a, BigInteger b), LucasSequence (BigInteger P, BigInteger Q, BigInteger k, BigInteger n), max (BigInteger bi), min (BigInteger bi). modInverse (BigInteger modulus). RabinMillerTest (int confidence),
Platform: |
Size: 35840 |
Author: jason.. |
Hits:
Description: dot NET 下的大整数乘法,使用FFT变换进行计算,提高了运算效率-dot NET multiplication of large integers, use the FFT transform computing, improved operations efficiency
Platform: |
Size: 27648 |
Author: libin |
Hits:
Description: 高精度模版,C++实现,重载实现加减乘除.-High-precision template, C++ Realized, the realization of heavy-duty calculation.
Platform: |
Size: 1024 |
Author: Nick |
Hits:
Description: 大整数的四则运算算法
用vc.net2003编写,稍微修改就可以在vc6.0运行-Large integer arithmetic algorithm vc.net2003 preparation, can be slightly modified to run in vc6.0
Platform: |
Size: 1260544 |
Author: 好好的 |
Hits:
Description: 一个基于c#的大整数类,内含各种大整数的操作-Based on the c# Big integer type that contains a variety of large integer operations
Platform: |
Size: 26624 |
Author: xi |
Hits:
Description: 很多人实现了大数的加减乘除运算
这里提供一个重载了输入输出和不等号等操作符的大数类,希望能让大家用c++编程时能更灵活的使用大数-Many people realized the addition and subtraction, multiplication and division of large numbers here to provide a heavy-duty computing the input-output and inequality operator of large numbers, such as categories, we hope that with c++ Programming to be more flexible use of large numbers
Platform: |
Size: 2048 |
Author: 张智勇 |
Hits:
Description: 在c++环境下实现了超大整数的计算(普通计算机无法实现计算的超大整数),包括运算符重载-At c++ environment achieve a large integer calculation (general computer can not achieve large integer calculations), including operator overloading
Platform: |
Size: 9216 |
Author: 马丽 |
Hits:
Description: 使用BigInteger类实现,实现了RSA的加解密-RSA encrytion and decryption ,biginteger
RSA encrytion and decryption ,biginteger
Platform: |
Size: 1024 |
Author: blueshare |
Hits:
Description: 基于大数库的RSA加密算法c#实现。大数库使用的是Documentation for C# BigInteger cla-
Database based on large numbers of RSA encryption algorithm c# to achieve
Platform: |
Size: 837632 |
Author: 张三 |
Hits:
Description: biginteger c library
Platform: |
Size: 38912 |
Author: makissy |
Hits:
Description: 用c语言实现大整数加减乘除, 求余, 最小公倍数等计算-C language implementation with large integer addition and subtraction multiplication and division, remainder, least common multiple and other computing
Platform: |
Size: 8192 |
Author: chen |
Hits:
Description: 一个自己写的 C# BigInteger 类,.net 类库中没有 BigInteger 类,写此类是为了与 java 中的 BigInteger 对应,以方便大数运算-One wrote it myself C# BigInteger Class,. Net library does not BigInteger class, write these in order to correspond with the java in the BigInteger to facilitate the operation of large numbers
Platform: |
Size: 14336 |
Author: ajtlnui |
Hits:
Description: BigInteger文件主要讲的是一个小游戏的编程。很有帮助-BigInteger documents mainly talking about is a small game programming. Helpful
Platform: |
Size: 24576 |
Author: 梦飞 |
Hits:
Description: Java中的简单浮点数类型float和double不能够进行精确的运算,只能用来做科学计算或者是工程计算。
不光是Java,在其它很多编程语言中也有这样的问题。在大多数情况下,计算的结果是准确的,
但是多试几次(可以做一个循环)就可以试出类似上面的错误。
这个问题相当严重,如果你有9.999999999999元,你的计算机是不会认为你可以购买10元的商品的。
为了解决Java基本数据类型在运算时会出现的溢出和计算不精确的问题。
Java 提供了两个类BigInteger和BigDecimal,专门用于进行高精度运算
凡是能用int 或float 做的事情,用BigInteger和BigDecimal也可以做,
只是必须换用方法调用,而不是使用运算符。
高精度整数BigInteger
BigInteger支持任意精度的整数,也就是说我们可精确表示任意大小的整数值;同时在运算过程中不会丢失任何信息;
高精度浮点数BigDecimal
它可以表示任意精度的小数,并对它们进行计算。
由于 BigDecimal 对象是不可变的,这些方法中的每一个都会产生新的 BigDecimal 对象。
因此,因为创建对象的开销,BigDecimal 不适合于大量的数学计算,但设计它的目的是用来精确地表示小数-Java, a simple floating-point types float and double can not be accurate calculation can only be used in scientific computing or engineering calculation.
Not only is Java, in many other programming languages also have this problem. In most cases, the calculated results are accurate,
But try more than once (you can do a loop) can try a similar error above.
This problem is very serious, if you have 9.999999999999 yuan, your computer will not think you can buy 10 dollars goods.
In order to solve the basic data types in Java computing overflow occurs and the problem of inaccurate calculation.
Java provides two classes BigInteger and BigDecimal, specifically for high-precision operations
Int or float can be used to do all things, with the BigInteger and BigDecimal can do,
Just have to change with the method call, rather than operator.
High-precision integer BigInteger
BigInteger supports arbitrary-precision integers, which means we can accurately represent the entire val
Platform: |
Size: 2048 |
Author: w_y_loong |
Hits:
Description: vs2008内部提取出来并进行修改的BIgInteger类-vs2008 extracted and modified within the BIgInteger class
Platform: |
Size: 7168 |
Author: lvyes |
Hits:
Description: 大整数实现,用java写的基本类,包含加减乘,没有除法-biginteger
Platform: |
Size: 8192 |
Author: qiuhui |
Hits:
Description: BigInteger (streamline)
BigInteger(精简)
自己写的高精度整形运算。
+,-,*,/,+=,-=,*=,/=,==,!=,>,>=,<,<=等等。-BigInteger (streamline)
My own high-precision plastic operations.
+,-,*, /,+ =,- =,* =,/=, ==,! =,>,> =, <, <=, And so on.
Platform: |
Size: 6144 |
Author: 一旦 |
Hits:
Description: 对于大于21亿即超过整数范围的数不能很好的转换。都会变成0,使用BigInteger可以解决这个问题。-For more than 2.1 billion more than the range of integers that can not be good conversion. Will become zero, using BigInteger can solve this problem.
Platform: |
Size: 19456 |
Author: qin sir |
Hits:
Description: BigInteger是一个自定义的大整数数据结构。可以用数组的形式实现大整数的各种操作。-BigInteger is a large integer data structure a custom. Can be achieved using the array form various operations of large integer.
Platform: |
Size: 7168 |
Author: Simon-4 |
Hits: