[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-math] Re: Axiom: Printing multiple variables in axiom.
From: |
Bill Page |
Subject: |
[Axiom-math] Re: Axiom: Printing multiple variables in axiom. |
Date: |
Tue, 13 Nov 2007 17:10:29 -0500 |
On 11/13/07, Constantine Frangos wrote:
>
> Thanks for the program.
>
> I tried this program on a simple matrix (see below). I was expecting to get
> matrix([[x1,x2],[x3,x4]])
>
> but the result is different.
>
> C. Frangos.
>
>
> (67) -> s:=matrix([[x1,x2],[x3,x4]])
> (67) ->
> +x1 x2+
> (67) | |
> +x3 x4+
> Type: Matrix Polynomial Integer
> (68) -> output1d(s)
> (68) ->
> (68) matrix(construct(construct(x1,x2),construct(x3,x4)))
> Type: OutputForm
> (69) ->
>
You will admit I think, that this does product the required result:
(1) -> matrix(construct(construct(x1,x2),construct(x3,x4)))
+x1 x2+
(1) | |
+x3 x4+
Type: Matrix Polynomial Integer
(2) ->
This is what you expected, right?
The bracket [ ... ] notation in the Axiom is (usually) just a
short-hand syntax sugar for the construct( ... ) operation.
If you really think that the [ ... ] notation is preferrable, that
could probably be arranged with a little more special coding.
Regards,
Bill Page.
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., (continued)
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Martin Rubey, 2007/11/09
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Constantine Frangos, 2007/11/10
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Martin Rubey, 2007/11/10
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Constantine Frangos, 2007/11/11
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Bill Page, 2007/11/11
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Martin Rubey, 2007/11/12
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Constantine Frangos, 2007/11/12
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Bill Page, 2007/11/12
- Re: [Axiom-math] Axiom: Printing multiple variables in axiom., Bill Page, 2007/11/12
- [Axiom-math] Axiom: Printing multiple variables in axiom., Constantine Frangos, 2007/11/13
- [Axiom-math] Re: Axiom: Printing multiple variables in axiom.,
Bill Page <=
- [Axiom-math] Axiom: Installing Aldor, Constantine Frangos, 2007/11/13
- Re: [Axiom-math] Axiom: Installing Aldor, Ralf Hemmecke, 2007/11/13
- [Axiom-math] Aldor: Installing Aldor, Constantine Frangos, 2007/11/13
- Re: [Axiom-math] Aldor: Installing Aldor, Bill Page, 2007/11/13
- Re: [Axiom-math] Aldor: Installing Aldor, Ralf Hemmecke, 2007/11/14
- [Axiom-math] Aldor: Installing Aldor, Constantine Frangos, 2007/11/14
- [Axiom-math] Re: Aldor: Installing Aldor, Bill Page, 2007/11/14
- [Axiom-math] Axiom: Installing Aldor, Constantine Frangos, 2007/11/17
- Re: [Axiom-math] Axiom: Installing Aldor, Ralf Hemmecke, 2007/11/17
- Re: [Axiom-math] Axiom: Installing Aldor, Constantine Frangos, 2007/11/24