Sha256: 23eadf147156b4437340160ece58ef9c939c59a69741c7efc8f024098c2d1524

Contents?: true

Size: 367 Bytes

Versions: 22

Compression:

Stored size: 367 Bytes

Contents

#!/usr/bin/env ruby
require("gsl")
n = 100
x = GSL::Vector.linspace(0.01, 4, n)
I0 = GSL::Sf::bessel_I0(x)
I1 = GSL::Sf::bessel_I1(x)
I2 = GSL::Sf::bessel_In(2, x)

y0 = GSL::Sf::bessel_K0(x)
y1 = GSL::Sf::bessel_K1(x)
y2 = GSL::Sf::bessel_Kn(2, x)
GSL::Vector.graph(x, I0, I1, I2, y0, y1, y2, "-T X -C -g 3 -y 0 6 -X x -L 'Bessel functions I0, I1, I2, K0, K1, K2'")

Version data entries

22 entries across 22 versions & 4 rubygems

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