all options
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Source: libmath-vector-real-perl  ]

Package: libmath-vector-real-perl (0.18-1)

Links for libmath-vector-real-perl

Screenshot

Debian Resources:

Download Source Package libmath-vector-real-perl:

Maintainers:

External Resources:

Similar packages:

Perl module for real number vector arithmetic

Math::Vector::Real is a pure Perl module to manipulate vectors of any dimension.

The function V, always exported by the module, allows one to create new vectors:

$v = V(0, 1, 3, -1);

Vectors are represented as blessed array references. It is allowed to manipulate the arrays directly as far as only real numbers are inserted (well, actually, integers are also allowed because from a mathematical point of view, integers are a subset of the real numbers).

Vectors can be used in mathematical expressions, the currently supported operations are:

 . + * /
 . - (both unary and binary)
 . x (cross product for 3D vectors)
 . += -= *= /= x=
 . == !=
 . "" (stringfication)
 . abs (returns the norm)
 . atan2 (returns the angle between two vectors)

When an array reference is used in an operation involving a vector, it is automatically upgraded to a vector.

Tags: Software Development: Perl Development, Libraries, Implemented in: Perl

Other Packages Related to libmath-vector-real-perl

  • depends
  • recommends
  • suggests
  • enhances

Download libmath-vector-real-perl

Download for all available architectures
Architecture Package Size Installed Size Files
all 18.9 kB57.0 kB [list of files]