Bill Allombert on Fri, 01 Feb 2019 18:21:11 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Syntax question: | .. | for matdet([ ... ])


On Fri, Feb 01, 2019 at 04:55:16PM +0000, Jacques Gélinas wrote:
> What changes would be needed in order for gp to accept the normal
> mathematical symbol  for determinants, using the same conventions as
> matrices for denoting the elements ?

You mean you want to accept |a,b;c,d| as a*d-bc ?
This would be confusing with the other uses of |.

The major issue is that there are no different left | and right |
characters to bracket the matrix entries.

Maybe you can change src/language/parse.y (and compile.c) to
handle this but I would not advise it.

Cheers,
Bill