Sha256: 6bf71c7b7734e6d84f359eff1ab4635b76bc6ed3c7ce2ac79aa660a8cae908b1

Contents?: true

Size: 243 Bytes

Versions: 22

Compression:

Stored size: 243 Bytes

Contents

#!/usr/bin/env ruby
require("gsl")
phi = GSL::Vector.linspace(0, 12*Math::PI, 800)
r = GSL::Sf::exp(GSL::Sf::cos(phi)) - 2*GSL::Sf::cos(4*phi) + GSL::pow_5(GSL::Sf::sin(phi/12))
x = r*GSL::Sf::cos(phi)
y = r*GSL::Sf::sin(phi)
GSL::graph(x, y)

Version data entries

22 entries across 22 versions & 4 rubygems

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