examples/complex/mul.rb in gsl-1.15.3 vs examples/complex/mul.rb in gsl-1.16.0.6
- old
+ new
@@ -1,10 +1,10 @@
#!/usr/bin/env ruby
require 'gsl'
a = GSL::Complex.rect(1, 2)
b = GSL::Complex[3, 4]
-
+
p a*b # -5 + 10i
p a.mul(b)
p a
p a.div(b)