in reply to Math::Matrix anyone?

I think Math-VectorReal will work better for you.
#!/usr/bin/perl use warnings; use strict; use Math::VectorReal; my $a = vector( 1, 2, 3 ); my $b = vector( 4, 5, 6 ); print "Vector as string (MatrixReal default format)\n\$a => ", $a; print $a->stringify( "Formated Output \$a => { %g, %g, %g }\n" ); print "Vector as string (MatrixReal default format)\n\$b => ", $b; print $b->stringify( "Formated Output \$b => { %g, %g, %g }\n" ); print 'dot product $a . $b =', $a . $b, "\n\n"; print 'cross product $a x $b =', $a x $b, "\n\n";

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: Math::Matrix anyone?
by GeoBoater (Initiate) on Aug 02, 2006 at 21:10 UTC
    Thanks. I'll give that a try!

    Ryan