login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Submitted by : (unknown) at: 2007-11-17T22:01:39-08:00 (17 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

Empty one dimensional arrays are printed but no empty two dimensional array in console.

Text Mode
empty Matrix not printed

fricas
(1) -> )set output algebra on
 
fricas
)set output tex off

fricas
empty()$Vector(INT)
(1) []
Type: Vector(Integer)
fricas
empty()$Matrix(INT)
(2) []
Type: Matrix(Integer)

LaTeX mode
empty Matrix causes error

fricas
)set output algebra off
 
fricas
)set output tex on

fricas
empty()$Vector(INT)

\label{eq1}\left[ \right](1)
Type: Vector(Integer)
fricas
empty()$Matrix(INT)

\label{eq2}\left[ \right](2)
Type: Matrix(Integer)

property change --kratt6, Thu, 23 Jun 2005 06:32:24 -0500 reply
Category: general => Axiom User Interface

I investigated a little further:
fricas
)se ou tex off
 
fricas
)se ou al on
(matrix [[1,2]])::OUTFORM pretend SEX
(5) (MATRIX () (ROW 1 2))
Type: SExpression?
fricas
(empty()$Matrix INT)::OUTFORM pretend SEX
(6) (BRACKET (AGGLST))
Type: SExpression?

fricas
matrix []
(7) matrix
Type: Symbol

could be equivalent to empty()$Matrix INT. On the other hand, the interpreter has no way to determine the type of this matrix, so the error is probably OK.

fricas
matrix [[]]
(8) matrix NONE
Type: Symbol

does indeed not make any sense at all.

Status: open => closed




  Subject: (replying)   Be Bold !!
  ( 15 subscribers )  
Please rate this page: