Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HP50g can't handle some matrix products

1,479 views
Skip to first unread message

Merciadri Luca

unread,
Mar 21, 2011, 8:08:03 AM3/21/11
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

My HP50g is unable to multiply a 1 by n vector by a n by 1
vector. However, matrix dimensions agree for the product, and this
product is thus defined. This is even the definition of the scalar
product of two vectors when their components are given.

Is it normal? Is there a way to make this scalar product?

Thanks.
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --

Life is like a box of chocolate, you never know what you're gonna
get.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAk2HP6MACgkQM0LLzLt8MhwLYACfXZbqqS5qvuUgstQOB7W19UkE
y3sAnRTuva7HlEP4RykIXJ5hP+Q1L8Gk
=Vhoo
-----END PGP SIGNATURE-----

TW

unread,
Mar 21, 2011, 9:59:47 AM3/21/11
to
> My HP50g is unable to multiply a 1 by n vector by a n by 1
> vector. However, matrix dimensions agree for the product, and this
> product is thus defined. This is even the definition of the scalar
> product of two vectors when their components are given.

One is a vector, the other is a matrix. They are two different types
to the calculator. Make sure they are defined both with [ [ 1 2
3 ... ] ] as opposed to just [ 1 2 3 ... ]. It should work then I
think.

TW

Merciadri Luca

unread,
Mar 21, 2011, 10:16:51 AM3/21/11
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

TW <timwe...@gmail.com> writes:

Okay. But a question then arises: why is a such a vector matrix not
defined as a vector, simply?

Thanks.
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --

The exception proves the rule.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAk2HXdMACgkQM0LLzLt8MhyT7gCZAVXmel6ay+SngTgO2oXhHhQ1
myEAoJo1oksJr0eslofyBb76pt+cTg0g
=eMiJ
-----END PGP SIGNATURE-----

MACH

unread,
Mar 21, 2011, 2:44:03 PM3/21/11
to
On 21 mar, 11:16, Merciadri Luca <Luca.Mercia...@student.ulg.ac.be>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> TW <timwess...@gmail.com> writes:
> >> My HP50g is unable to multiply a 1 by n vector by a n by 1
> >> vector. However, matrix dimensions agree for the product, and this
> >> product is thus defined. This is even the definition of the scalar
> >> product of two vectors when their components are given.
>
> > One is a vector, the other is a matrix. They are two different types
> > to the calculator. Make sure they are defined both with [ [ 1 2
> > 3 ... ] ]  as opposed to just [ 1 2 3 ... ]. It should work then I
> > think.
>
> Okay. But a question then arises: why is a such a vector matrix not
> defined as a vector, simply?
>
> Thanks.
> - --
> Merciadri Luca
> Seehttp://www.student.montefiore.ulg.ac.be/~merciadri/

> - --
>
> The exception proves the rule.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
>
> iEYEARECAAYFAk2HXdMACgkQM0LLzLt8MhyT7gCZAVXmel6ay+SngTgO2oXhHhQ1
> myEAoJo1oksJr0eslofyBb76pt+cTg0g
> =eMiJ
> -----END PGP SIGNATURE-----

Hi!, Merciadri:

Have you seen the following video? ... http://www.youtube.com/watch?v=g-pO8X8k8pg

Best Regards.
MACH.

John H Meyers

unread,
Mar 21, 2011, 5:21:09 PM3/21/11
to
On 3/21/2011 7:08 AM, Merciadri Luca wrote:

> My HP50g is unable to multiply a 1 by n vector by a n by 1 vector.

There is no such thing as a "1 by n vector" vs. an "n by 1 vector,"
because a "vector" is a ONE-dimensional LIST of 'n' values,
which has no "second dimension."

The only legitimate types of "vector multiplication"
defined in HP graphing calculators are:

[ 1 2 3 ] [ 4 5 6 ] DOT @ Result: 32

[ 1 2 3 ] [ 4 5 6 ] CROSS @ Result: [ -3 6 -3 ]

A Matrix, on the other hand, is a TWO-dimensional array,
and there is a significant different between these examples:

[[ 1 2 3 ]] @ "1x3" matrix (one row)

[[ 4 ] [ 5 ] [ 6 ]] @ "3x1" matrix (one column)

Valid products of these are highly dependent upon the order of multiplication
(or to put it another way, which "vector" to treat as a "one row matrix"
vs. the other "vector" being treated as a "one column matrix"):

[[ 1 2 3 ]] [[ 4 ] [ 5 ] [ 6 ]] * @ [[ 32 ]]

[[ 4 ] [ 5 ] [ 6 ]] [[ 1 2 3 ]] * @ [[ 4 8 12 ] [ 5 10 15 ] [ 6 12 18 ]]

As a special case, the calculators accept:

[[ 1 2 3 ]] [ 4 5 6 ] * @ [ 32 ]

Where a vector 2nd argument of "*" is treated as a 1-column matrix,
and the one-column matrix result is again output as a vector;
this is handy to save a little effort and eye-strain
in representing systems of linear equations as 'A*X=B'
where 'X' and 'B' may each be represented as vectors,
rather than as one-column matrices.

[r->] [OFF]

Virgil

unread,
Mar 21, 2011, 6:07:45 PM3/21/11
to
In article <87r5a0v...@merciadriluca-station.MERCIADRILUCA>,
Merciadri Luca <Luca.Me...@student.ulg.ac.be> wrote:

> Hi,
>
> My HP50g is unable to multiply a 1 by n vector by a n by 1
> vector. However, matrix dimensions agree for the product, and this
> product is thus defined. This is even the definition of the scalar
> product of two vectors when their components are given.

What is mostly displayed as row vector, such as [ 1 2 3 ] is treated
internally, as are all vectors, as a column vector so that [[1 2 3 ]]
times [1 2 3] in that order is a proper operation , a 1 by 3 matrix
times a 3 dimensional column vector and results in [ 14 ], a one
dimensional vector.

Whereas [1 2 3] times [[ 1 2 3 ]] in that order is improper and results
only in an error message.

If vectors were required to be matrices, then the vector [`1 2 3]
would be have to be [[1] [2] [3]] rather than [[1 2 3]].


So the hp50 does handle those matrix products, one you understand the
peculiar vector notation of displaying internally held column vectors as
if they were row vectors.

It is just one of those idiosyncracies of the HP48-49-50 series you
have to get used to.

Merciadri Luca

unread,
Mar 23, 2011, 8:56:14 PM3/23/11
to
On Mar 21, 11:07 pm, Virgil <V...@gil.Gil> wrote:
> In article <87r5a0vfq4....@merciadriluca-station.MERCIADRILUCA>,

Thanks all!

0 new messages