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