intervals 0.3.61 → 0.3.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/README.txt +16 -13
  2. data/VERSION.txt +1 -1
  3. data/lib/fpu.rb +4 -4
  4. data/lib/interval.rb +1 -1
  5. 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" # you must have this library installed, obviously
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 projects homepage is at http://intervals.rubyforge.org and its
164
- cockpit at http://rubyforge.org/projects/intervals .
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
- You can download the library from http://rubyforge.org/frs/?group_id=1458 .
167
+ The installation is trivial with
168
+ RubyGems[http://docs.rubygems.org/]: just type
167
169
 
168
- You can browse the project
169
- repository[http://rubyforge.org/plugins/scmsvn/viewcvs.php/trunk?root=intervals].
170
+ gem install --remote intervals
170
171
 
171
- To compile the C extension, go into the directory with the project files and type
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
- On a unix-like system you can type
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
- Executing interval.rb runs the library testsuite.
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
- - Second Edition, Revised and Expanded. John Dekker, Inc., 2003.
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
 
@@ -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 "fpu_c"
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 "struct_float"
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)
@@ -6,7 +6,7 @@
6
6
  # Licensed under the terms of LGPL: http://www.gnu.org/copyleft/lesser.html
7
7
 
8
8
  # To control the FPU's rounding mode
9
- require "fpu"
9
+ require File.dirname(__FILE__) + '/fpu'
10
10
 
11
11
  class Numeric
12
12
  #
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.61
7
- date: 2006-03-30 00:00:00 +02:00
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: long-decimal
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: