Sha256: 9382a0146bcaefbb79bd730bb8413ffa4553a8c467f517f18c948cfd87956474

Contents?: true

Size: 253 Bytes

Versions: 22

Compression:

Stored size: 253 Bytes

Contents

#!/usr/bin/env ruby
require("gsl")
n = 100
x = GSL::Vector.linspace(0, 10, n)
m1 = GSL::Sf::fermi_dirac_m1(x)
IO.popen("graph -T X -C -g 3 -X x -L 'Fermi-Dirac function'", "w") do |io|
  for i in 0...n do
    io.printf("%e %e\n", x[i], m1[i])
  end
end

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
gsl-2.1.0.3 examples/sf/fermi.rb
gsl-2.1.0.2 examples/sf/fermi.rb
gsl-2.1.0.1 examples/sf/fermi.rb
gsl-2.1.0 examples/sf/fermi.rb
gsl-1.16.0.6 examples/sf/fermi.rb
rb-gsl-1.16.0.5 examples/sf/fermi.rb
rb-gsl-1.16.0.4 examples/sf/fermi.rb
rb-gsl-1.16.0.3 examples/sf/fermi.rb
rb-gsl-1.16.0.3.rc1 examples/sf/fermi.rb
gsl-nmatrix-1.15.3.2 examples/sf/fermi.rb
gsl-nmatrix-1.15.3.1 examples/sf/fermi.rb
rb-gsl-1.16.0.2 examples/sf/fermi.rb
rb-gsl-1.16.0.1 examples/sf/fermi.rb
rb-gsl-1.16.0 examples/sf/fermi.rb
rb-gsl-1.15.3.2 examples/sf/fermi.rb
rb-gsl-1.15.3.1 examples/sf/fermi.rb
blackwinter-gsl-1.15.3.2 examples/sf/fermi.rb
gsl-nmatrix-1.15.3.0 examples/sf/fermi.rb
gsl-1.15.3 examples/sf/fermi.rb
gsl-1.14.7 examples/sf/fermi.rb