[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Format in Octave 2.1.30
From: |
Dirk Laurie |
Subject: |
Re: Format in Octave 2.1.30 |
Date: |
Tue, 13 Jun 2000 09:59:16 +0200 |
Dirk Laurie skryf:
> In Octave 2.0.16, a certain matrix prints out as follows:
>
> 3069300 399292 898170 498922 1666628 1094686 3533559
> 0 430053 967599 537504 1797726 1179624 3859053
> 0 600353 1350720 750288 2505936 1649042 5320942
> 0 796738 1792560 995670 3332637 2188810 6942760
> 13831850 888342 1998675 1109184 3716868 2426198 7956108
> 3655530 747983 1682950 934595 3131991 2029972 6516695
> 0 698960 1572420 872340 2913630 1912020 6103632
> 7457537 844780 1900686 1055488 3536682 2307240 7418334
> 0 792936 1784082 990888 3314000 2170581 6973200
> 8102173 898779 2021976 1123260 3751764 2471304 7898394
> 4150050 832806 1873536 1040701 3472984 2274831 7175278
>
>
> In Octave 2.1.30, the same matrix prints out as follows:
>
> 3.069e+06 3.993e+05 8.982e+05 4.989e+05 1.667e+06 1.095e+06 3.534e+06
> 0 4.301e+05 9.676e+05 5.375e+05 1.798e+06 1.18e+06 3.859e+06
> 0 6.004e+05 1.351e+06 7.503e+05 2.506e+06 1.649e+06 5.321e+06
> 0 7.967e+05 1.793e+06 9.957e+05 3.333e+06 2.189e+06 6.943e+06
> 1.383e+07 8.883e+05 1.999e+06 1.109e+06 3.717e+06 2.426e+06 7.956e+06
> 3.656e+06 7.48e+05 1.683e+06 9.346e+05 3.132e+06 2.03e+06 6.517e+06
> 0 6.99e+05 1.572e+06 8.723e+05 2.914e+06 1.912e+06 6.104e+06
> 7.458e+06 8.448e+05 1.901e+06 1.055e+06 3.537e+06 2.307e+06 7.418e+06
> 0 7.929e+05 1.784e+06 9.909e+05 3.314e+06 2.171e+06 6.973e+06
> 8.102e+06 8.988e+05 2.022e+06 1.123e+06 3.752e+06 2.471e+06 7.898e+06
> 4.15e+06 8.328e+05 1.874e+06 1.041e+06 3.473e+06 2.275e+06 7.175e+06
>
> I prefer the old behaviour. Is there a built-in variable I can set?
>
I have stumbled on a fix. "format long e" followed by "format" does
what I want. Successive calls to "format ..." seem to be dependent on the
old state.
(May I guess? Does 2.0.16 use good old ugly but predictable <stdio.h> and
2.1.30 beautiful trendily-orthodox but counter-intuitive <iostream>?)
Dirk Laurie
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------