Create Complex number : Complex « System Functions « Perl
- Perl
- System Functions
- Complex
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