Sha256: 9e955774a961925a1de56e81f6b55a6681bf31df777c8378f3218a105fdc71e2

Contents?: true

Size: 151 Bytes

Versions: 22

Compression:

Stored size: 151 Bytes

Contents

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

puts("Solve x^3 - 1 == 0")
puts("x = 1, (-1 +/- i sqrt(3))/2")
p GSL::Poly.complex_solve_cubic(0, 0, -1)


__END__

Version data entries

22 entries across 22 versions & 4 rubygems

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