GeoBoater has asked for the wisdom of the Perl Monks concerning the following question:
#! /usr/bin/perl use Math::Matrix; $a = new Math::Matrix ([1], [2], [3]); $x = new Math::Matrix ([4], [5], [6]); $a->print("A\n"); $x->print("X\n"); $f = $a->cross_product( $x ); print "output of a->cross_product( x ) is: '$f'\n\n"; if( defined( $f ) ) { $f->print( "Cross product is \n" ) }; $f = $a->cross_product( $a, $x ); print "output of a->cross_product( a, x ) is: '$f'\n\n"; if( defined( $f ) ) { $f->print( "Cross product is \n" ) };
$ mathtest.pl A 1.00000 2.00000 3.00000 X 4.00000 5.00000 6.00000 output of a->cross_product( x ) is: '' output of a->cross_product( a, x ) is: ''
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Math::Matrix anyone? (source)
by tye (Sage) on Aug 02, 2006 at 20:43 UTC | |
by GeoBoater (Initiate) on Aug 02, 2006 at 21:21 UTC | |
by Anonymous Monk on Oct 05, 2007 at 04:23 UTC | |
|
Re: Math::Matrix anyone?
by zentara (Cardinal) on Aug 02, 2006 at 19:48 UTC | |
by GeoBoater (Initiate) on Aug 02, 2006 at 21:10 UTC | |
|
Re: Math::Matrix anyone?
by dirving (Friar) on Aug 02, 2006 at 18:48 UTC |