/usr/share/doc/ruby-gsl/examples/poly/cubic.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 | #!/usr/bin/env ruby
require('gsl')
puts("Solve x^3 - 1 == 0")
puts("x = 1, (-1 +/- i sqrt(3))/2")
p GSL::Poly.complex_solve_cubic(0, 0, -1)
__END__
|