Add all the A tasks
This commit is contained in:
parent
2dd7375f96
commit
051504d65b
1608 changed files with 18584 additions and 0 deletions
10
Task/Arithmetic-Complex/Perl/arithmetic-complex.pl
Normal file
10
Task/Arithmetic-Complex/Perl/arithmetic-complex.pl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use Math::Complex;
|
||||
my $a = 1 + 1*i;
|
||||
my $b = 3.14159 + 1.25*i;
|
||||
|
||||
print "$_\n" foreach
|
||||
$a + $b, # addition
|
||||
$a * $b, # multiplication
|
||||
-$a, # negation
|
||||
1 / $a, # multiplicative inverse
|
||||
~$a; # complex conjugate
|
||||
Loading…
Add table
Add a link
Reference in a new issue