vector times vector; vector^-1?



Thanks, Barton (and Robert)! I didn't know about matrix_element_mult. It's
precisely what the doctor ordered.


Viktor
 

-----Original Message-----
From: Barton Willis [mailto:willisb at unk.edu] 
Sent: Saturday, November 15, 2008 5:14 PM
To: Viktor T. Toth
Cc: 'Robert Dodier'; 'van Nek'; Maxima at math.utexas.edu
Subject: Re: [Maxima] vector times vector; vector^-1?

-----maxima-bounces at math.utexas.edu wrote: -----

>To be clear about it, what I am proposing is that (optionally, perhaps)
>
>[a,b].[c,d]
>
>should return
>
>a.c + b.d
>
>instead of
>
>ac + bd

Try this:

 (%i1) matrix_element_mult : "."$
 (%i2) [a,b] . [c,d];
 (%o2) b . d + a . c

Barton