/usr/share/doc/ruby-gsl/examples/gallery/scarabaeus.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 | #!/usr/bin/env ruby
require("gsl")
t = GSL::Vector.linspace(0, 2*Math::PI, 100)
a = 2
b = 3
cost = GSL::Sf::cos(t)
r = b*GSL::Sf::cos(2*t) - a*cost
x = r*cost
y = r*GSL::Sf::sin(t)
GSL::graph(x, y, "-T X -C")
|