Physics::Vector

Physics::Vector with Units

Physics::Vector

Synopsis

#!/usr/bin/env raku
use Physics::Vector;
use Physics::Measure :ALL;

my $v1 = Physics::Vector.new([1, 2, 3], 'm/s');

my $v = (3,4,0), my $u = 'm/s';
my $v2 = Physics::Vector.new(:$v, :$u);
say ~$v2;

say ~($v1+$v2);
say ~(-$v1);

my $m = 10kg;

my $p = $m * $v1;
say ~$p;

Copyright

copyright(c) 2024 Henley Cloud Consulting Ltd.

Physics::Vector v0.0.1

Physics::Vector with Units

Authors

  • librasteve

License

Artistic-2.0

Dependencies

Physics::UnitPhysics::Vector

Test Dependencies

Provides

  • Physics::Vector

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.