SPVM::Complex_2d - double Complex Type
use Complex_2d; my $z : Complex_2d; # Set $z->{re} = 1.5; $z->{im} = 2.5; # Get my $re = $z->{re}; my $im = $z->{im};
Complex_2d is a multi-numeric type to represent a double complex number.
Complex_2d
has re : double;
A real number.
has im : double;
A imaginary number.
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM
CPAN shell
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.