/usr/share/doc/ruby-gsl/examples/pdf/binomiral.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 | #!/usr/bin/env ruby
require("gsl")
pp = 0.5
nn = 9
IO.popen("graph -T X -C -g 3 -x 0 10 -y 0 0.3 -L 'Binomial Distribution, p = 0.5, n = 9'", "w") do |io|
for i in 0..10 do
y = GSL::Ran::binomial_pdf(i, pp, nn)
io.printf("%d %e\n%d %e\n", i, y, i+1, y)
end
end
|