Physics::Lorentz::Transformation

Physics::Lorentz::Transformation Perl module contains representation of poincare transformations.
Download

Physics::Lorentz::Transformation Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Steffen Mueller
  • Publisher web site:
  • http://search.cpan.org/~smueller/InlineX-XS-0.02/lib/InlineX/XS.pm

Physics::Lorentz::Transformation Tags


Physics::Lorentz::Transformation Description

Physics::Lorentz::Transformation Perl module contains representation of poincare transformations. Physics::Lorentz::Transformation Perl module contains representation of poincare transformations.SYNOPSIS use Physics::Lorentz; my $rotation = Physics::Lorentz::Transformation->rotation_euler( $alpha, $beta, $gamma ); my $vector = Physics::Lorentz::Vector->new(); my $rotated = $rotation->apply($vector); # or: $rotated = $rotation * $vector; ...This class represents a Poincare transformation. That is a proper or improper Lorentz transformation plus a shift by some 4-vector. (x' = lamda*x + a)Yes, the class name might be misleading, but honestly, when most non-physicists talk about Lorentz transformations, they mean Poincare transformations anyway. (Pun intended.)To sum this up, the set of Poincare transformations contains, among othersBoostsRotationsSpace Inversions / ParityTime InversionShifts by a constant vectorCombinations thereofOVERLOADED INTERFACEStringification is overloaded with the stringify method.Multiplication (*) is overloaded with the merge method for other transformations: $t3 = $t1 * $t2 corresponds to the following application on a vector: t1 * ( t2 * vec ). (I.e. t2 first, then t1) Of course, Poincare transformations do not commute!The assignment form of multiplication is supported for merging transformations but its use is discouraged unless you're into obfuscation.Multiplication is also overloaded for application to vectors, but only if the vector is on the right of the transformation: $t * $v is okay, but $v * $t is not.Requirements:· Perl Requirements: · Perl


Physics::Lorentz::Transformation Related Software