Sha256: a624cedccbf936d0b7e7d9ac34e0932209e70cb42133492b78ae597bdcf9fd92

Contents?: true

Size: 275 Bytes

Versions: 22

Compression:

Stored size: 275 Bytes

Contents

#!/usr/bin/env ruby
require("gsl")

phi = GSL::Vector.linspace(0, 2*Math::PI, 200)
r1 = GSL::Sf::sin(4*phi)
x1 = r1*GSL::Sf::cos(phi)
y1 = r1*GSL::Sf::sin(phi)
r2 = GSL::Sf::cos(4*phi)
x2 = r2*GSL::Sf::cos(phi)
y2 = r2*GSL::Sf::sin(phi)
GSL::Vector.graph([x1, y1], [x2, y2])

Version data entries

22 entries across 22 versions & 4 rubygems

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