Create Complex number : Complex « System Functions « Perl






Create Complex number

     


use Math::Complex;

$c1 = Math::Complex->new(-2,3);

$c2 = Math::Complex->new(4,5);

$c3 = $c1 * $c2;

print "$c1 x $c2 = $c3\n";

   
    
    
    
    
  








Related examples in the same category

1.Compare complex number