Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    PDL::Complex 2.4.9_995

    Download button

    No screenshots available
    Downloads: 351  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Marc Lehmann | More programs
    Perl Artistic License / FREE
    February 2nd, 2012, 23:32 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    PDL::Complex description

    Can handle complex numbers.

    PDL::Complex can handle complex numbers.

    SYNOPSIS

    use PDL;
    use PDL::Complex;


    This module features a growing number of functions manipulating complex numbers. These are usually represented as a pair [ real imag ] or [ angle phase ]. If not explicitly mentioned, the functions can work inplace (not yet implemented!!!) and require rectangular form.

    While there is a procedural interface available ($a/$b*$c ), you can also opt to cast your pdl's into the PDL::Complex datatype, which works just like your normal piddles, but with all the normal perl operators overloaded.

    The latter means that sin($a) + $b/$c will be evaluated using the normal rules of complex numbers, while other pdl functions (like max) just treat the piddle as a real-valued piddle with a lowest dimension of size 2, so max will return the maximum of all real and imaginary parts, not the "highest" (for some definition)

    TIPS, TRICKS & CAVEATS

    i is a constant exported by this module, which represents -1**0.5, i.e. the imaginary unit. it can be used to quickly and conviniently write complex constants like this: 4+3*i.

    Use r2C(real-values) to convert from real to complex, as in $r = Cpow $cplx, r2C 2. The overloaded operators automatically do that for you, all the other functions, do not. So Croots 1, 5 will return all the fifths roots of 1+1*i (due to threading).

    use cplx(real-valued-piddle) to cast from normal piddles intot he complex datatype. Use real(complex-valued-piddle) to cast back. This requires a copy, though.

    This module has received some testing by Vanuxem Gr�gory (g.vanuxem at wanadoo dot fr). Please report any other errors you come across!


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    complex numbers | PDL extension | Perl module | PDL | numbers | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM