gmp 0.5.3 → 0.5.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'gmp'
4
-
5
- a=GMP::Q.new(200,11)
6
- b=-a
7
- c=a.floor
8
- d=a.ceil
9
- e=a.trunc
10
- f=b.floor
11
- g=b.ceil
12
- h=b.trunc
13
-
14
- [c,d,e,f,g,h].each { |var| p var }
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'gmp'
4
-
5
- a=GMP::Z.new(5)
6
- b=GMP::Z.new(7)
7
- c=GMP::Q.new(3,11)
8
- d=GMP::F.new(3.14)
9
- e=2**32
10
-
11
- f=[a/b,a/3,3/a,a/c,c/a,a/d,d/a,a/e,e/a]
12
-
13
- f.each {|var| p var}