unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Neon Absentius <absent@sdf.lonestar.org>
Subject: Re: Non-Commutative calculations in Calc, Revisited
Date: Fri, 7 Oct 2005 00:47:45 +0000	[thread overview]
Message-ID: <20051007004745.GD29712@SDF.LONESTAR.ORG> (raw)
In-Reply-To: <20051006180113.GA24696@SDF.LONESTAR.ORG>

On Thu, Oct 06, 2005 at 06:01:13PM +0000, Neon Absentius wrote:
> On Thu, Oct 06, 2005 at 03:42:40PM +0200, David Kastrup wrote:
> > Jay Belanger <belanger@truman.edu> writes:
> > 
> > > Neon Absentius <absent@sdf.lonestar.org> writes:
> > >
> > >> When in non-commutative (aka `matrix') mode calc calculates 
> > >> (a b)^-1 to be a^-1 b^-1 instead of the correct b^-1 a^-1.
> > 
> > Uh, what's correct about b^-1 a^-1?
> > 
> > Set a=[1,1], b=[1;0], then (a b)^-1 = [1], and neither b^-1 nor a^-1
> > exist.
> > 
> > This only works with a and b being square matrices.
> 
> Yes you are right.
> 

OTH, now that I thought litle bit about it, there is a way in which my statement 
makes sence even for non-square matrices.  Here is the general setting:

Let (C,*) be a set with a partially defined associative multiplication
(called composition) such that each element has a left and a right
identity element (such a structure is usually known as a "category").
The set of all matrices satisfy these conditions.  Assume that for two
composable elements a,b the composition a*b has an (bi-sided) inverse
(ab)^-1.  Then a has a *right* inverse a^-1 and b has a *left* inverse
b^-1 and the identity

  (ab)^-1 = b^-1a^-1

holds.

Proof:  Since ab(ab)^-1 = (ab)^-1 ab = 1 we can take a^-1 = b(ab)^-1 
        and b^-1 = (ab)^-1 a.  Then 
 	
	   b^-1 a^-1 = [(ab)^-1 a] [b (ab)^-1]
	             = (ab)^-1,  by associativity.

	It is also straightforward to check that all elements that I composed 
	are indeed composable. QED

I leave it as an exersise to find a^-1 and b^-1 for your example :)).

I am not sure it is a good idea to implement the rule in general
though.  In any case I do think that is a good idea to have a command
that assumes that all variables are square matrices or, in the
abstract language, that any two elements are composable.  Of course
being square matrices, the variables will have more properties, eg
determinats etc. That might also be useful in some cases.

--
 There is no national science just as there is no national
multiplication table; what is national is no longer science.
         -- Anton Checov

  reply	other threads:[~2005-10-07  0:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.9745.1128461080.20277.help-gnu-emacs@gnu.org>
2005-10-06 13:16 ` Non-Commutative calculations in Calc, Revisited Jay Belanger
2005-10-06 13:42   ` David Kastrup
2005-10-06 16:17     ` Jay Belanger
2005-10-06 18:23       ` Neon Absentius
2005-10-06 18:01     ` Neon Absentius
2005-10-07  0:47       ` Neon Absentius [this message]
     [not found]       ` <mailman.10168.1128646105.20277.help-gnu-emacs@gnu.org>
     [not found]         ` <wi7jcqt9ep.fsf@dms.auburn.edu>
2005-10-07  2:15           ` Neon Absentius
     [not found]           ` <mailman.10178.1128651397.20277.help-gnu-emacs@gnu.org>
2005-10-07  7:26             ` David Kastrup
     [not found]     ` <mailman.10119.1128621714.20277.help-gnu-emacs@gnu.org>
2005-10-07  3:59       ` Jay Belanger
2005-10-07 21:31         ` Jay Belanger
2005-10-04 21:23 Neon Absentius

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051007004745.GD29712@SDF.LONESTAR.ORG \
    --to=absent@sdf.lonestar.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).