Sha256: 7b24c440a21044678b9f0710187f3cba0373e75f5dab7d04f13e43579e390cc7

Contents?: true

Size: 291 Bytes

Versions: 6

Compression:

Stored size: 291 Bytes

Contents

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

p GSL::pow_int(8, 3)
p 8*8*8.0

p GSL::pow_2(2)
p GSL::pow_3(2)
p GSL::pow_4(2)
p GSL::pow_5(2)
p GSL::pow_6(2)
p GSL::pow_7(2)
p GSL::pow_8(2)
p GSL::pow_9(2)

p GSL::pow(3.2, 4.5)
p GSL::pow([1, 2, 3, 4, 5], 3)
p GSL::pow(GSL::Vector[1, 2, 3, 4, 5], 3)

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gsl-2.1.0.3 examples/math/power.rb
gsl-2.1.0.2 examples/math/power.rb
gsl-2.1.0.1 examples/math/power.rb
gsl-2.1.0 examples/math/power.rb
gsl-1.16.0.6 examples/math/power.rb
rb-gsl-1.16.0.5 examples/math/power.rb