intervals 0.3.61 → 0.3.63
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +16 -13
- data/VERSION.txt +1 -1
- data/lib/fpu.rb +4 -4
- data/lib/interval.rb +1 -1
- metadata +3 -3
data/README.txt
CHANGED
@@ -52,7 +52,7 @@ results.
|
|
52
52
|
Using interval arithmetic it is possible to detect the loss of
|
53
53
|
precision due to floating-point roundings.
|
54
54
|
|
55
|
-
require "interval" #
|
55
|
+
require "interval" # See below if the library isn't installed yet
|
56
56
|
|
57
57
|
1/Interval[3.0] # => Interval[0.333333333333333, 0.333333333333333]
|
58
58
|
|
@@ -160,33 +160,36 @@ We say that 1/a is sharp
|
|
160
160
|
|
161
161
|
== Installation
|
162
162
|
|
163
|
-
This
|
164
|
-
|
163
|
+
This project is hosted on
|
164
|
+
RubyForge[http://rubyforge.org/projects/intervals] and you can browse
|
165
|
+
its documentation[http://intervals.rubyforge.org] on-line.
|
165
166
|
|
166
|
-
|
167
|
+
The installation is trivial with
|
168
|
+
RubyGems[http://docs.rubygems.org/]: just type
|
167
169
|
|
168
|
-
|
169
|
-
repository[http://rubyforge.org/plugins/scmsvn/viewcvs.php/trunk?root=intervals].
|
170
|
+
gem install --remote intervals
|
170
171
|
|
171
|
-
|
172
|
+
on the command-line. In alternative, you can manually download the library[http://rubyforge.org/frs/?group_id=1458] and compile the C extensions
|
172
173
|
|
173
174
|
ruby extconf.rb
|
174
175
|
make
|
175
176
|
|
176
|
-
|
177
|
-
|
178
|
-
./extconf.rb && make
|
177
|
+
You can also browse the project SCM
|
178
|
+
repository[http://rubyforge.org/plugins/scmsvn/viewcvs.php/trunk?root=intervals].
|
179
179
|
|
180
180
|
== Testing
|
181
181
|
|
182
|
-
|
182
|
+
A testsuite is included with the library, which can be run from within ruby:
|
183
|
+
|
184
|
+
require 'interval'
|
185
|
+
Test::Unit::AutoRunner.run
|
183
186
|
|
184
187
|
== References
|
185
188
|
|
186
189
|
Eldon Hansen, G. William Walster, {Global Optimization Using
|
187
190
|
Interval
|
188
|
-
Analysis}[http://www.ebooks.dekker.com/eBookCover.asp?eBookID=0824758706&type=ISBN]
|
189
|
-
|
191
|
+
Analysis}[http://www.ebooks.dekker.com/eBookCover.asp?eBookID=0824758706&type=ISBN] -
|
192
|
+
Second Edition, Revised and Expanded. John Dekker, Inc., 2003.
|
190
193
|
|
191
194
|
== Author & License
|
192
195
|
|
data/VERSION.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.61
|
1
|
+
0.3.61:62M
|
data/lib/fpu.rb
CHANGED
@@ -6,9 +6,9 @@
|
|
6
6
|
# Licensed under the terms of LGPL: http://www.gnu.org/copyleft/lesser.html
|
7
7
|
|
8
8
|
begin
|
9
|
-
require
|
9
|
+
require File.dirname(__FILE__) + '/fpu_c'
|
10
10
|
rescue LoadError
|
11
|
-
Dir.chdir($LOAD_PATH.
|
11
|
+
Dir.chdir(([File.dirname(__FILE__)] + $LOAD_PATH).
|
12
12
|
map{|p| File.expand_path('../ext', p)}.
|
13
13
|
find(proc {$stderr.puts "Cannot locate fpu.c"; raise}) {|d|
|
14
14
|
File.exist?(File.expand_path('fpu.c',d))
|
@@ -25,7 +25,7 @@ rescue LoadError
|
|
25
25
|
}
|
26
26
|
end
|
27
27
|
|
28
|
-
require
|
28
|
+
require File.dirname(__FILE__) + '/struct_float'
|
29
29
|
|
30
30
|
module FPU
|
31
31
|
|
@@ -178,7 +178,7 @@ else
|
|
178
178
|
require 'enumerator'
|
179
179
|
|
180
180
|
def locate(name)
|
181
|
-
$LOAD_PATH.
|
181
|
+
([File.dirname(__FILE__)] + $LOAD_PATH).
|
182
182
|
map{|p| File.expand_path("../test/#{name}", File.expand_path(p))}.
|
183
183
|
find(proc {raise LoadError, "Cannot locate #{name}"}) {|p|
|
184
184
|
File.exist?(p)
|
data/lib/interval.rb
CHANGED
metadata
CHANGED
@@ -3,14 +3,14 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: intervals
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date: 2006-03-
|
6
|
+
version: 0.3.63
|
7
|
+
date: 2006-03-31 00:00:00 +02:00
|
8
8
|
summary: Interval arithmetic in Ruby.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: taschini@gmail.com
|
12
12
|
homepage: http://intervals.rubyforge.org/
|
13
|
-
rubyforge_project:
|
13
|
+
rubyforge_project: intervals
|
14
14
|
description: This library implements an interval system in the extended real set that is closed under arithmetic operations. Correct rounding ensures that the operations are inclusion-wise monotonic.
|
15
15
|
autorequire:
|
16
16
|
default_executable:
|