help-octave
[Top][All Lists]
Advanced

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

Bug in sprandsym


From: Alec Teal
Subject: Bug in sprandsym
Date: Mon, 11 Feb 2013 09:22:57 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

Octave 3.2 is fine
octave3.2:2> full(sprandsym(2,1))
ans =

   0.15333   0.31553
   0.31553   0.00000

octave3.2:3> full(sprandsym(2,1))
ans =

  -1.18289  -0.97299
  -0.97299   0.00000

octave3.2:4> full(sprandsym(2,1))
ans =

   0.85036   0.99040
   0.99040   0.00000

octave3.2:5>

Octave 3.7.1 (I compiled it recently)
octave:1> sprandsym(2,1);
warning: division by zero
octave:2> full(sprandsym(2,1))
warning: division by zero
ans =

   1.53740  -0.50944
  -0.50944   1.13690

octave:3> full(sprandsym(2,1))
warning: division by zero
ans =

   0.74857   0.24895
   0.24895   0.38971

octave:4> full(sprandsym(2,1))
warning: division by zero
ans =

  -0.21101   2.21171
   2.21171   0.42186

octave:5> full(sprandsym(2,1))
warning: division by zero
ans =

  -0.95801  -1.36308
  -1.36308  -0.31756

octave:6>


See the div by zero warning?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]