This file is indexed.

/usr/share/doc/ruby-gsl/examples/integration/qagp.rb is in ruby-gsl 2.1.0.3+dfsg1-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env ruby
require 'gsl'
include GSL
include Math

f454 = Function.alloc{ |x|
  x2 = x*x
  x3 = x2*x
  x3*log(((x2-1)*(x2-2)).abs)
}
exp_result = 5.274080611672716401E+01
exp_abserr = 1.755703848687062418E-04
pts = [0, 1, sqrt(2), 3]
result = f454.qagp(pts, 0.0, 1e-3)
p result

puts("exp_result: #{exp_result}")
puts("exp_abserr: #{exp_abserr}")

p Integration.qagp(f454, pts, [0.0, 1e-3])