ruby-mpc 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +23 -9
- data/lib/mpc/version.rb +1 -1
- metadata +27 -5
data/README.rdoc
CHANGED
@@ -3,26 +3,40 @@
|
|
3
3
|
* http://rubyforge.org/projects/ruby-mpfr/
|
4
4
|
* http://gemcutter.org/gems/ruby-mpc/
|
5
5
|
|
6
|
-
==
|
6
|
+
== Description:
|
7
7
|
|
8
|
-
|
8
|
+
ruby-mpc is an extended C library to use MPC[http://www.multiprecision.org/]
|
9
|
+
which is the library of the arithmetic of complex numbers with multiprecision.
|
9
10
|
|
10
|
-
==
|
11
|
+
== Notice:
|
11
12
|
|
12
|
-
*
|
13
|
+
* Many methods have not been tested sufficiently.
|
14
|
+
* Documentation is not complete.
|
13
15
|
|
14
|
-
==
|
16
|
+
== Example:
|
17
|
+
You must require 'mpfr' to use 'mpc'.
|
15
18
|
|
16
|
-
|
19
|
+
require "mpfr"
|
20
|
+
require "mpc"
|
21
|
+
MPFR.get_default_prec(100)
|
22
|
+
a = MPC(-8, -2)
|
23
|
+
b = MPC(0.3, 4.2)
|
24
|
+
c = a / b
|
25
|
+
puts c.imag.to_strf("%.30Re")
|
26
|
+
puts c.real.to_strf("%.30Re")
|
17
27
|
|
18
28
|
== Requirements:
|
19
29
|
|
20
|
-
*
|
21
|
-
*
|
30
|
+
* Ruby[http://www.ruby-lang.org/] 1.9.1 or later
|
31
|
+
* MPFR[http://www.mpfr.org/] 2.4.1 or later
|
32
|
+
* MPC[http://www.multiprecision.org/] 0.8.1 or later
|
22
33
|
* ruby-mpfr
|
23
34
|
|
24
35
|
== Install:
|
25
|
-
|
36
|
+
The package of rubygems of ruby-mpfr is provided.
|
37
|
+
You can install ruby-mpfr with the following command
|
38
|
+
in the system satisfying the above requirements.
|
39
|
+
|
26
40
|
$ sudo gem install ruby-mpc
|
27
41
|
|
28
42
|
== License:
|
data/lib/mpc/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
RUBY_MPC_VERSION = '0.0.
|
1
|
+
RUBY_MPC_VERSION = '0.0.4'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-mpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takayuki YAMAGUCHI
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-02-06 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -22,6 +22,26 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 0.0.4
|
24
24
|
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rubyforge
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.3
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: gemcutter
|
37
|
+
type: :development
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.3.0
|
44
|
+
version:
|
25
45
|
- !ruby/object:Gem::Dependency
|
26
46
|
name: hoe
|
27
47
|
type: :development
|
@@ -30,9 +50,11 @@ dependencies:
|
|
30
50
|
requirements:
|
31
51
|
- - ">="
|
32
52
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
53
|
+
version: 2.5.0
|
34
54
|
version:
|
35
|
-
description:
|
55
|
+
description: |-
|
56
|
+
ruby-mpc is an extended C library to use MPC[http://www.multiprecision.org/]
|
57
|
+
which is the library of the arithmetic of complex numbers with multiprecision.
|
36
58
|
email:
|
37
59
|
- d@ytak.info
|
38
60
|
executables: []
|
@@ -95,6 +117,6 @@ rubyforge_project: ruby-mpc
|
|
95
117
|
rubygems_version: 1.3.5
|
96
118
|
signing_key:
|
97
119
|
specification_version: 3
|
98
|
-
summary:
|
120
|
+
summary: ruby-mpc is an extended C library to use MPC[http://www.multiprecision.org/] which is the library of the arithmetic of complex numbers with multiprecision.
|
99
121
|
test_files: []
|
100
122
|
|