#14 Commercial Macsyma matrix entry

open
nobody
None
2
2006-03-27
2003-05-18
Cliff Yapp
No

The commercial Macsyma apparently allows for the
following matrix entry notation:

> mat: [a, b, c; d, e, f];
> works in Macsyma and genrates this error:
>
> at: [a, b, c;
> ^
> (C1) Incorrect syntax: Too many ]'s
> d, e, f]
> ^
> (C1) Incorrect syntax: Premature termination of input
at ;.
> ;
> ^

Clearly this involves an update to the Maxima parser,
and probably the Matrix code as well.

Discussion

  • Robert Dodier
    Robert Dodier
    2005-04-11

    Logged In: YES
    user_id=501686

    It might be pretty hard to reproduce the syntax verbatim
    since the semicolon plays a special role. But maybe
    something like this?

    (%i1) "`" ([L]) := apply (matrix, L);
    (%o1) `([L]) := apply(matrix, L)
    (%i2) nary ("`");
    (%o2) "`"
    (%i3) [a, b] ` [c, d] ` [d, e];
    [ a b ]
    [ ]
    (%o3) [ c d ]
    [ ]
    [ d e ]

    I kind of like this.

     
  • Robert Dodier
    Robert Dodier
    2006-03-27

    Logged In: YES
    user_id=501686

    changing data type to feature request (instead of bug).

     
  • Robert Dodier
    Robert Dodier
    2006-03-27

    • labels: 460522 -->