boolean display fixed
[scilab.git] / scilab / modules / core / tests / unit_tests / display.dia.ref
index f239726..2e897fd 100644 (file)
-// Copyright INRIA
-format('v',10)
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ????-2008 - INRIA
+//
+//  This file is distributed under the same license as the Scilab package.
+// =============================================================================
+format("v",10)
 //display of numbers
 x=2.6533333
- x  =
-    2.6533333  
+ x  = 
+    2.6533333
 x=[2.6533333 -0.0002]
- x  =
-    2.6533333  - 0.0002  
+ x  = 
+    2.6533333  - 0.0002
 x'
  ans  =
-    2.6533333  
-  - 0.0002     
+    2.6533333
+  - 0.0002
 x=[]
- x  =
-     []
+ x  = 
+    []
 //display of polynomials
-z=poly(0,'z')
- z  =
-    z   
-num=[ (((((1)*z-2.6533333)*z+2.6887936)*z-1.2916784)*z+0.2911572)*...
-     z-0.0243497
-      (((((1)*z-2.6533333)*z+2.6887936)*z-1.2916784)*z+0.2911572)*...
-     z-0.0243497
-     (((1)*z )*z )*z+1
-     0]
- num  =
-                                       2            3            4      
-  - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z       
-               5                                                        
-            + z                                                         
-                                                                        
-                                       2            3            4      
-  - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z       
-               5                                                        
-            + z                                                         
-                                                                        
-         3                                                              
-    1 + z                                                               
-                                                                        
-    0                                                                   
+z=poly(0,"z")
+ z  = 
+     
+    z
+num=[ (((((1)*z-2.6533333)*z+2.6887936)*z-1.2916784)*z+0.2911572)* ...
+z-0.0243497
+(((((1)*z-2.6533333)*z+2.6887936)*z-1.2916784)*z+0.2911572)* ...
+z-0.0243497
+(((1)*z )*z )*z+1
+0]
+ num  = 
+                                       2             3             4
+  - 0.0243497 + 0.2911572z - 1.2916784z  + 2.6887936z  - 2.6533333z 
+               5
+            + z 
+                                       2             3             4
+  - 0.0243497 + 0.2911572z - 1.2916784z  + 2.6887936z  - 2.6533333z 
+               5
+            + z 
+         3
+    1 + z 
+     
+   0
 den = [ ((((1)*z-1.536926)*z+0.8067352)*z-0.1682810)*z+0.0113508
 ((((1)*z-1.536926)*z+0.8067352)*z-0.1682810)*z+0.0113508
 ((1)*z )*z
 1]
- den  =
-                                      2           3   4  
-    0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z   
-                                                         
-                                      2           3   4  
-    0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z   
-                                                         
-     2                                                   
-    z                                                    
-                                                         
-    1                                                    
+ den  = 
+                                      2            3    4
+    0.0113508 - 0.168281z + 0.8067352z  - 1.536926z  + z 
+                                      2            3    4
+    0.0113508 - 0.168281z + 0.8067352z  - 1.536926z  + z 
+     2
+    z 
+     
+    1
 num',den'
  ans  =
          column 1
-                                       2            3            4      
-  - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z       
-               5                                                        
-            + z                                                         
+                                       2             3             4
+  - 0.0243497 + 0.2911572z - 1.2916784z  + 2.6887936z  - 2.6533333z 
+               5
+            + z 
          column 2
-                                       2            3            4      
-  - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z       
-               5                                                        
-            + z                                                         
+                                       2             3             4
+  - 0.0243497 + 0.2911572z - 1.2916784z  + 2.6887936z  - 2.6533333z 
+               5
+            + z 
  
          column 3 to 4
-         3       
-    1 + z     0  
+         3     
+    1 + z    0
  ans  =
          column 1
-                                      2           3   4  
-    0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z   
+                                      2            3    4
+    0.0113508 - 0.168281z + 0.8067352z  - 1.536926z  + z 
          column 2 to 4
-                                      2           3   4     2        
-    0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z     z     1   
+                                      2            3    4     2     
+    0.0113508 - 0.168281z + 0.8067352z  - 1.536926z  + z     z     1
 [num;den]
  ans  =
-                                       2            3            4      
-  - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z       
-               5                                                        
-            + z                                                         
-                                                                        
-                                       2            3            4      
-  - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z       
-               5                                                        
-            + z                                                         
-                                                                        
-         3                                                              
-    1 + z                                                               
-                                                                        
-    0                                                                   
-                                                                        
-                                      2           3   4                 
-    0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z                  
-                                                                        
-                                      2           3   4                 
-    0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z                  
-                                                                        
-     2                                                                  
-    z                                                                   
-                                                                        
-    1                                                                   
+                                       2             3             4
+  - 0.0243497 + 0.2911572z - 1.2916784z  + 2.6887936z  - 2.6533333z 
+               5
+            + z 
+                                       2             3             4
+  - 0.0243497 + 0.2911572z - 1.2916784z  + 2.6887936z  - 2.6533333z 
+               5
+            + z 
+         3
+    1 + z 
+     
+   0
+                                      2            3    4
+    0.0113508 - 0.168281z + 0.8067352z  - 1.536926z  + z 
+                                      2            3    4
+    0.0113508 - 0.168281z + 0.8067352z  - 1.536926z  + z 
+     2
+    z 
+     
+    1
 [num den]
  ans  =
          column 1
-                                       2            3            4      
-  - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z       
+                                       2             3             4    
+  - 0.0243497 + 0.2911572z - 1.2916784z  + 2.6887936z  - 2.6533333z     
                5                                                        
             + z                                                         
-                                                                        
-                                       2            3            4      
-  - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z       
+                                       2             3             4    
+  - 0.0243497 + 0.2911572z - 1.2916784z  + 2.6887936z  - 2.6533333z     
                5                                                        
             + z                                                         
-                                                                        
          3                                                              
     1 + z                                                               
                                                                         
-    0                                                                   
+   0                                                                    
          column 2
-                                      2           3   4  
-    0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z   
-                                                         
-                                      2           3   4  
-    0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z   
-                                                         
+                                      2            3    4
+    0.0113508 - 0.168281z + 0.8067352z  - 1.536926z  + z 
+                                      2            3    4
+    0.0113508 - 0.168281z + 0.8067352z  - 1.536926z  + z 
      2                                                   
     z                                                    
                                                          
     1                                                    
 //display of polynomials
-z=poly(0,'z')
- z  =
-    z   
+z=poly(0,"z")
+ z  = 
+     
+    z
 n=1+z;d=n*n;n1=[n d];d1=[d d*d];n1=[n1 n1];d1=[d1 d1];
 n2=[n n*n;n*n n**4];d2=[n*n n**4;n n*n];den=d2(1,:);num=n2(2,:);
-p=poly(rand(5,1),'z');q=poly(rand(6,1),'z');
+p=poly(rand(5,1),"z");q=poly(rand(6,1),"z");
 p1=[p,0.1+2.35*z-5.05*z**3];q1=[q,2.56+0.03*z-10.01*z*z+z**5];
 d3=[1+z**10 z**15];
 //display of rationals
 r=num./den
- r  =
-    1     1   
-    -     -   
-    1     1   
+ r  = 
+           
+   1   1   
+   --  --  
+           
+   1   1   
 r'
  ans  =
-    1   
-    -   
-    1   
-        
-    1   
-    -   
-    1   
-tlist('r',d,n)
- ans  =
-              2  
-    1 + 2z + z   
-    ----------   
-      1 + z      
-tlist('r',n,d)
- ans  =
-      1 + z      
-    ---------    
-              2  
-    1 + 2z + z   
-tlist('r',d2,n2)
- ans  =
-              2               2    3   4  
-    1 + 2z + z     1 + 4z + 6z + 4z + z   
-    ----------     --------------------   
-                                  2       
-      1 + z             1 + 2z + z        
-                                          
-                                  2       
-      1 + z             1 + 2z + z        
-    ---------      --------------------   
-              2               2    3   4  
-    1 + 2z + z     1 + 4z + 6z + 4z + z   
-tlist('r',n2,d2)
- ans  =
-                                  2       
-      1 + z             1 + 2z + z        
-    ---------      --------------------   
-              2               2    3   4  
-    1 + 2z + z     1 + 4z + 6z + 4z + z   
-                                          
-              2               2    3   4  
-    1 + 2z + z     1 + 4z + 6z + 4z + z   
-    ----------     --------------------   
-                                  2       
-      1 + z             1 + 2z + z        
-tlist('r',den,num)
- ans  =
-              2               2    3   4  
-    1 + 2z + z     1 + 4z + 6z + 4z + z   
-    ----------     --------------------   
-              2               2    3   4  
-    1 + 2z + z     1 + 4z + 6z + 4z + z   
-tlist('r',num,den)
- ans  =
-              2               2    3   4  
-    1 + 2z + z     1 + 4z + 6z + 4z + z   
-    ----------     --------------------   
-              2               2    3   4  
-    1 + 2z + z     1 + 4z + 6z + 4z + z   
-tlist('r',p1,q1)
- ans  =
-         column 1
-                                       2            3            4      
-  - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z       
-          5                                                             
-       + z                                                              
-    ------------------------------------------------------------------  
-                                       2            3            4      
-    0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z       
-                   5   6                                                
-       - 3.6713072z + z                                                 
-         column 2
-                          3     
-       0.1 + 2.35z - 5.05z      
-    -------------------------   
-                         2   5  
-    2.56 + 0.03z - 10.01z + z   
-tlist('r',q1,p1)
- ans  =
-         column 1
-                                       2            3            4      
-    0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z       
-                   5   6                                                
-       - 3.6713072z + z                                                 
-    ------------------------------------------------------------------  
-                                       2            3            4      
-  - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z       
-          5                                                             
-       + z                                                              
-         column 2
-                         2   5  
-    2.56 + 0.03z - 10.01z + z   
-    -------------------------   
-                          3     
-       0.1 + 2.35z - 5.05z      
-tlist('r',p,q)
- ans  =
-                                       2            3            4      
-  - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z       
-          5                                                             
-       + z                                                              
-    ------------------------------------------------------------------  
-                                       2            3            4      
-    0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z       
-                   5   6                                                
-       - 3.6713072z + z                                                 
-tlist('r',q,p)
- ans  =
-                                       2            3            4      
-    0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z       
-                   5   6                                                
-       - 3.6713072z + z                                                 
-    ------------------------------------------------------------------  
-                                       2            3            4      
-  - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z       
-          5                                                             
-       + z                                                              
-tlist('r',p,z)
- ans  =
-                                       2            3            4      
-  - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z       
-          5                                                             
-       + z                                                              
-    ------------------------------------------------------------------  
-                                    z                                   
-tlist('r',z,p)
+       
+   1   
+   --  
+       
+   1   
+       
+   1   
+   --  
+       
+   1   
+rlist(d,n)
+ ans  =
+             2  
+   1 + 2z + z   
+   -----------  
+                
+     1 + z      
+rlist(n,d)
+ ans  =
+                
+     1 + z      
+   -----------  
+             2  
+   1 + 2z + z   
+rlist(d2,n2)
+ ans  =
+             2             2    3   4  
+   1 + 2z + z   1 + 4z + 6z + 4z + z   
+   -----------  ---------------------  
+                               2       
+     1 + z           1 + 2z + z        
+                               2       
+     1 + z           1 + 2z + z        
+   -----------  ---------------------  
+             2             2    3   4  
+   1 + 2z + z   1 + 4z + 6z + 4z + z   
+rlist(n2,d2)
+ ans  =
+                               2       
+     1 + z           1 + 2z + z        
+   -----------  ---------------------  
+             2             2    3   4  
+   1 + 2z + z   1 + 4z + 6z + 4z + z   
+             2             2    3   4  
+   1 + 2z + z   1 + 4z + 6z + 4z + z   
+   -----------  ---------------------  
+                               2       
+     1 + z           1 + 2z + z        
+rlist(den,num)
+ ans  =
+             2             2    3   4  
+   1 + 2z + z   1 + 4z + 6z + 4z + z   
+   -----------  ---------------------  
+             2             2    3   4  
+   1 + 2z + z   1 + 4z + 6z + 4z + z   
+rlist(num,den)
+ ans  =
+             2             2    3   4  
+   1 + 2z + z   1 + 4z + 6z + 4z + z   
+   -----------  ---------------------  
+             2             2    3   4  
+   1 + 2z + z   1 + 4z + 6z + 4z + z   
+rlist(p1,q1)
+ ans  =
+column 1
+                                       2            3            4   5  
+   -0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z + z   
+   -------------------------------------------------------------------  
+                                        2            3            4     
+     0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z      
+                  5   6                                                 
+      - 3.6713072z + z                                                  
+column 2
+                         3     
+      0.1 + 2.35z - 5.05z      
+   --------------------------  
+                        2   5  
+   2.56 + 0.03z - 10.01z + z   
+                               
+                               
+rlist(q1,p1)
+ ans  =
+column 1
+                                        2            3            4     
+     0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z      
+                  5   6                                                 
+      - 3.6713072z + z                                                  
+   -------------------------------------------------------------------  
+                                       2            3            4   5  
+   -0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z + z   
+column 2
+                        2   5  
+   2.56 + 0.03z - 10.01z + z   
+   --------------------------  
+                         3     
+      0.1 + 2.35z - 5.05z      
+                               
+                               
+rlist(p,q)
+ ans  =
+                                       2            3            4   5  
+   -0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z + z   
+   -------------------------------------------------------------------  
+                                        2            3            4     
+     0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z      
+                  5   6                                                 
+      - 3.6713072z + z                                                  
+rlist(q,p)
+ ans  =
+                                        2            3            4     
+     0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z      
+                  5   6                                                 
+      - 3.6713072z + z                                                  
+   -------------------------------------------------------------------  
+                                       2            3            4   5  
+   -0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z + z   
+rlist(p,z)
+ ans  =
+                                       2            3            4   5  
+   -0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z + z   
+   -------------------------------------------------------------------  
+                                                                        
+                                   z                                    
+rlist(z,p)
  ans  =
-                                    z                                   
-    -----------------------------------------------------------------   
-                                       2            3            4      
-  - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z       
-          5                                                             
-       + z                                                              
-tlist('r',d1,n1)
+                                                                        
+                                   z                                    
+   -------------------------------------------------------------------  
+                                       2            3            4   5  
+   -0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z + z   
+rlist(d1,n1)
  ans  =
  
+column 1 to 3
  
-         column 1 to 3
+             2             2    3   4            2  
+   1 + 2z + z   1 + 4z + 6z + 4z + z   1 + 2z + z   
+   -----------  ---------------------  -----------  
+                               2                    
+     1 + z           1 + 2z + z          1 + z      
  
-              2               2    3   4              2  
-    1 + 2z + z     1 + 4z + 6z + 4z + z     1 + 2z + z   
-    ----------     --------------------     ----------   
-                                  2                      
-      1 + z             1 + 2z + z            1 + z      
+column 4
  
-         column 4
-               2    3   4  
-    1 + 4z + 6z + 4z + z   
-    --------------------   
-                   2       
-         1 + 2z + z        
-tlist('r',n1,d1)
+              2    3   4  
+   1 + 4z + 6z + 4z + z   
+   ---------------------  
+                  2       
+        1 + 2z + z        
+rlist(n1,d1)
  ans  =
  
+column 1 to 3
  
-         column 1 to 3
+                               2                    
+     1 + z           1 + 2z + z          1 + z      
+   -----------  ---------------------  -----------  
+             2             2    3   4            2  
+   1 + 2z + z   1 + 4z + 6z + 4z + z   1 + 2z + z   
  
-                                  2                      
-      1 + z             1 + 2z + z            1 + z      
-    ---------      --------------------     ---------    
-              2               2    3   4              2  
-    1 + 2z + z     1 + 4z + 6z + 4z + z     1 + 2z + z   
-         column 4
+column 4
  
-                   2       
-         1 + 2z + z        
-    --------------------   
-               2    3   4  
-    1 + 4z + 6z + 4z + z   
+                  2       
+        1 + 2z + z        
+   ---------------------  
+              2    3   4  
+   1 + 4z + 6z + 4z + z   
 //display of strings
-digits='abcdefghijklmnopqrstuvwxyz'
- digits  =
- abcdefghijklmnopqrstuvwxyz   
-numbers='1234567890'
- numbers  =
- 1234567890   
-majuscules='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
- majuscules  =
- ABCDEFGHIJKLMNOPQRSTUVWXYZ   
-symbols=',./;''[] \ =-!\$%^&*()_+~:""[]| @'
- symbols  =
- ,./;'[] \ =-!\$%^&*()_+~:"[]| @   
+digits="abcdefghijklmnopqrstuvwxyz"
+ digits  = 
+ abcdefghijklmnopqrstuvwxyz
+numbers="1234567890"
+ numbers  = 
+ 1234567890
+majuscules="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ majuscules  = 
+ ABCDEFGHIJKLMNOPQRSTUVWXYZ
+symbols=",./;''[] \ =-!\$%^&*()_+~:""[]| @"
+ symbols  = 
+ ,./;'[] \ =-!\$%^&*()_+~:"[]| @
 [numbers;digits]
  ans  =
 !1234567890                  !
 !                            !
 !abcdefghijklmnopqrstuvwxyz  !
 [numbers digits;digits numbers]
  ans  =
 !1234567890                  abcdefghijklmnopqrstuvwxyz  !
 !                                                        !
 !abcdefghijklmnopqrstuvwxyz  1234567890                  !
 [numbers digits+digits+digits]
  ans  =
          column 1
 !1234567890  !
          column 2
 !abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqr!
-!     stuvwxyz                                                         !
+!stuvwxyz                                                              !
 ans';
 [ans ans]
  ans  =
          column 1
 !1234567890                                                            !
 !                                                                      !
 !abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqr!
-!     stuvwxyz                                                         !
+!stuvwxyz                                                              !
          column 2
 !1234567890                                                            !
 !                                                                      !
 !abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqr!
-!     stuvwxyz                                                         !
-''
+!stuvwxyz                                                              !
+""
+ ans  =
+oldlines = lines();
+lines(0,50);
+digits="abcdefghijklmnopqrstuvwxyz";
+d = digits+digits+digits;
+n = "1234567890";
+// scalar
+n
+n  = 
+ 1234567890
+n+n+n+n+n
+ ans  =
+ 123456789012345678901234567890123456789012345678 
+ 90                                              
+d
+d  = 
+ abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv 
+ wxyzabcdefghijklmnopqrstuvwxyz                  
+d+d+d+d
+ ans  =
+ abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv 
+ wxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqr 
+ stuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmn 
+ opqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghij 
+ klmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdef 
+ ghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzab 
+ cdefghijklmnopqrstuvwxyz                        
+// column vector
+[n; n; n; n; n]
  ans  =
-    
+!1234567890  !
+!            !
+!1234567890  !
+!            !
+!1234567890  !
+!            !
+!1234567890  !
+!            !
+!1234567890  !
+[d; d; d; d; d]
+ ans  =
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+[n+n; n+n; n+n]
+ ans  =
+!12345678901234567890  !
+!                      !
+!12345678901234567890  !
+!                      !
+!12345678901234567890  !
+[n+n; n+n+n; n+n]
+ ans  =
+!12345678901234567890            !
+!                                !
+!123456789012345678901234567890  !
+!                                !
+!12345678901234567890            !
+[n+n; d+d; n+n]
+ ans  =
+!12345678901234567890                            !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqr!
+!stuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmn!
+!opqrstuvwxyz                                    !
+!                                                !
+!12345678901234567890                            !
+[d; d]
+ ans  =
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+[d; n]
+ ans  =
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!1234567890                                      !
+[n; d]
+ ans  =
+!1234567890                                      !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+[n; n]
+ ans  =
+!1234567890  !
+!            !
+!1234567890  !
+// row vector
+[n n n n n]
+ ans  =
+         column 1 to 4
+!1234567890  1234567890  1234567890  1234567890  !
+         column 5
+!1234567890  !
+[d d d d d]
+ ans  =
+         column 1
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+         column 2
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+         column 3
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+         column 4
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+         column 5
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+[n+n n+n n+n]
+ ans  =
+         column 1 to 2
+!12345678901234567890  12345678901234567890  !
+         column 3
+!12345678901234567890  !
+[n+n n+n+n n+n]
+ ans  =
+         column 1
+!12345678901234567890  !
+         column 2
+!123456789012345678901234567890  !
+         column 3
+!12345678901234567890  !
+[d d]
+ ans  =
+         column 1
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+         column 2
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+[d n]
+ ans  =
+         column 1
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+         column 2
+!1234567890  !
+[n d]
+ ans  =
+         column 1
+!1234567890  !
+         column 2
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+[n n]
+ ans  =
+!1234567890  1234567890  !
+// matrix
+nd = [n d];
+dn = [d n];
+[nd nd]
+ ans  =
+         column 1
+!1234567890  !
+         column 2
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+         column 3
+!1234567890  !
+         column 4
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+[nd; nd]
+ ans  =
+         column 1
+!1234567890  !
+!            !
+!1234567890  !
+         column 2
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+[nd' nd']
+ ans  =
+         column 1
+!1234567890                                      !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+         column 2
+!1234567890                                      !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+[nd'; nd']
+ ans  =
+!1234567890                                      !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!1234567890                                      !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+[dn dn]
+ ans  =
+         column 1
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+         column 2
+!1234567890  !
+         column 3
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+         column 4
+!1234567890  !
+[dn; dn]
+ ans  =
+         column 1
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+         column 2
+!1234567890  !
+!            !
+!1234567890  !
+[dn' dn']
+ ans  =
+         column 1
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!1234567890                                      !
+         column 2
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!1234567890                                      !
+[dn'; dn']
+ ans  =
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!1234567890                                      !
+!                                                !
+!abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv!
+!wxyzabcdefghijklmnopqrstuvwxyz                  !
+!                                                !
+!1234567890                                      !
+lines(oldlines);
 // display of list
 list()
  ans  =
      ()
 list(1,2,3)
  ans  =
        ans(1)
-    1.  
+    1.
        ans(2)
-    2.  
+    2.
        ans(3)
-    3.  
+    3.
 list(list(1,list()),2)
  ans  =
        ans(1)
-        ans(1)(1)
-    1.  
-        ans(1)(2)
+              ans(1)(1)
+    1.
+              ans(1)(2)
      ()
        ans(2)
-    2.  
-list(tlist('r',q,p),1.23)
+    2.
+list(rlist(q,p),1.23)
  ans  =
        ans(1)
-                                       2            3            4      
-    0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z       
-                   5   6                                                
-       - 3.6713072z + z                                                 
-    ------------------------------------------------------------------  
-                                       2            3            4      
-  - 0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z       
-          5                                                             
-       + z                                                              
+                                        2            3            4     
+     0.0123314 - 0.2684985z + 1.5393672z - 4.0114366z + 5.4004179z      
+                  5   6                                                 
+      - 3.6713072z + z                                                  
+   -------------------------------------------------------------------  
+                                       2            3            4   5  
+   -0.0000078 + 0.0351988z - 0.3720034z + 1.3432153z - 1.9632981z + z   
        ans(2)
-    1.23  
+    1.23
 // overloading of display
 1:$
  ans  =
- 1:1:$   
+ 1:1:$
 list(1,1:$)
  ans  =
        ans(1)
-    1.  
+    1.
        ans(2)
- 1:1:$   
+ 1:1:$
 list(list(1:$))
  ans  =
        ans(1)
-        ans(1)(1)
- 1:1:$   
+              ans(1)(1)
+ 1:1:$
 list(list(1,$),list())
  ans  =
        ans(1)
-        ans(1)(1)
-    1.  
-        ans(1)(2)
-    $   
+              ans(1)(1)
+    1.
+              ans(1)(2)
+     
+    $
        ans(2)
      ()
 // Tlist overloaded display
-TL=tlist('x',1,2)
- TL  =
+TL=tlist("x",1,2)
+ TL  = 
        TL(1)
- x   
+ x
        TL(2)
-    1.  
+    1.
        TL(3)
-    2.  
-deff('%x_p(x)','disp(x(3),x(2),''Mydisplay'')')
+    2.
+deff("%x_p(x)","disp(x(3),x(2),''Mydisplay'')")
 TL
- TL  =
- Mydisplay   
-    1.  
-    2.  
+TL  = 
+ Mydisplay
+    1.
+    2.
 list(TL)
  ans  =
        ans(1)
- Mydisplay   
-    1.  
-    2.  
+ Mydisplay
+    1.
+    2.
 list(list(TL))
  ans  =
        ans(1)
-        ans(1)(1)
- Mydisplay   
-    1.  
-    2.  
-TL=tlist('x',1:$,2)
- TL  =
- Mydisplay   
- 1:1:$   
-    2.  
+              ans(1)(1)
+ Mydisplay
+    1.
+    2.
+TL=tlist("x",1:$,2)
+ TL  = 
+ Mydisplay
+ 1:1:$
+    2.
 list(TL)
  ans  =
        ans(1)
- Mydisplay   
- 1:1:$   
-    2.  
+ Mydisplay
+ 1:1:$
+    2.
 list(list(TL))
  ans  =
        ans(1)
-        ans(1)(1)
- Mydisplay   
- 1:1:$   
-    2.  
+              ans(1)(1)
+ Mydisplay
+ 1:1:$
+    2.
 TL(2)=TL
- TL  =
- Mydisplay   
- Mydisplay   
- 1:1:$   
-    2.  
+ TL  = 
+ Mydisplay
+ Mydisplay
+ 1:1:$
+    2.
+    2.
+// boolean
+%t
+ ans  =
+  T
+%f
+ ans  =
+  F
+b=[%t %t %t]
+ b  = 
+  T T T
+~b
+ ans  =
+  F F F
+bp=b'
+ bp  = 
+  T
+  T
+  T
+~bp
+ ans  =
+  F
+  F
+  F
+bb=[b; b; b]
+ bb  = 
+  T T T
+  T T T
+  T T T
+~bb
+ ans  =
+  F F F
+  F F F
+  F F F
  
-    2.