AST: try to fix some 32bits/64bits test failures 55/18355/2
Clément DAVID [Tue, 5 Jul 2016 13:43:19 +0000 (15:43 +0200)]
Change-Id: I5d0e9deb2047d9c40d943520e6e10069a41c42f4

scilab/modules/ast/tests/nonreg_tests/bug_14303.dia.ref
scilab/modules/ast/tests/nonreg_tests/bug_14303.tst

index 17dafa1..df54cf7 100644 (file)
@@ -32,7 +32,7 @@ A = [1,0,0,0,0,0,0,0;
   -1.   0.   18.   0.   -48.   0.     32.   0. 
    0.  -7.   0.    56.   0.   -112.   0.    64.
 //display is ok
-disp(expm(A));
+disp(nearfloat("succ", expm(A)));
          column 1 to 6
    2.7182818   0.          0.          0.          0.          0.       
    0.          2.7182818   0.          0.0000001   0.         -0.0000002
@@ -53,43 +53,43 @@ disp(expm(A));
    0.          5.417D+08
 // now display is ok
 format(25);
-disp(expm(A));
+disp(nearfloat("succ", expm(A)));
          column 1 to 2
-   2.7182818284590459789740   0.                      
-   0.                         2.7182818015177225845491
-  -4.6707742704716039838786   0.                      
-   0.                        -51.879868171559834877371
-   986.51887138491565565346   0.                      
-   0.                         5923608.336195232346654 
-  -3505325614554.6108398438   0.                      
-   0.                        -190824518.11990356445312
+   2.7182818284590464230632   0.                      
+   0.                         2.7182818015177230286383
+  -4.6707742704716030957002   0.                      
+   0.                        -51.879868171559827771944
+   986.5188713849157693403    0.                      
+   0.                         5923608.3361952332779765
+  -3505325614554.6103515625   0.                      
+   0.                        -190824518.1199035346508 
          column 3 to 4
    0.                         0.                      
    0.                         0.0000001317192458835057
-   7.3890560989306468542281   0.                      
-   0.                         54.59814989296543075170 
-  -3964.7586192011626735621   0.                      
-   0.                        -14809150.540157752111554
-   29795267732595.20703125    0.                      
-   0.                         892372855.75740456581116
+   7.3890560989306477424066   0.                      
+   0.                         54.598149892965437857129
+  -3964.7586192011622188147   0.                      
+   0.                        -14809150.540157750248909
+   29795267732595.2109375     0.                      
+   0.                         892372855.75740468502045
          column 5 to 6
    0.                         0.                      
-   0.                        -0.0000001887344807005064
+   0.                        -0.0000001887344807005063
    0.                         0.                      
    0.                         0.0000001819498482334282
-   2980.9580906107216833334   0.                      
-   0.                         8885544.922243420034647 
-  -52579884242037.671875      0.                      
-   0.                        -1243259289.7225642204285
+   2980.9580906107221380807   0.                      
+   0.                         8885544.9222434218972921
+  -52579884242037.6640625     0.                      
+   0.                        -1243259289.7225639820099
          column 7 to 8
    0.                         0.                      
    0.                         0.0000000839564363063566
    0.                         0.                      
    0.                        -0.000000074896572352002 
-  -0.0000609660211250409242   0.                      
-   0.                         0.0000009705089855263858
-   26289942123999.79296875    0.                      
-   0.                         541710954.80334520339966
+  -0.0000609660211250409175   0.                      
+   0.                         0.0000009705089855263860
+   26289942123999.796875      0.                      
+   0.                         541710954.80334532260895
 A =  matrix(linspace(-1E10,1E20,64), 8, 8);
 disp(A);
          column 1 to 3
index 2273689..1bf72b8 100644 (file)
@@ -26,11 +26,11 @@ A = [1,0,0,0,0,0,0,0;
 0,-7,0,56,0,-112,0,64]
 //display is ok
 
-disp(expm(A));
+disp(nearfloat("succ", expm(A)));
 // now display is ok
 
 format(25);
-disp(expm(A));
+disp(nearfloat("succ", expm(A)));
 
 A =  matrix(linspace(-1E10,1E20,64), 8, 8);
 disp(A);