octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #55494] [octave forge] (bim) Unit test in bim1


From: Rafael Laboissiere
Subject: [Octave-bug-tracker] [bug #55494] [octave forge] (bim) Unit test in bim1c_norm.m fails randomly
Date: Wed, 16 Jan 2019 17:28:21 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.7 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?55494>

                 Summary: [octave forge] (bim) Unit test in bim1c_norm.m fails
randomly
                 Project: GNU Octave
            Submitted by: rlaboiss
            Submitted on: Wed 16 Jan 2019 10:28:20 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: other
        Operating System: Any

    _______________________________________________________

Details:

The first unit test in file bim1c_norm.m fails randomly.  This is the recipe
for triggering the bug:


octave:1> pkg load bim
octave:2> while 1
 L = rand (1); V = rand (1); m = linspace (0,1,5).^2;  m *= L;
 u    = V * ones (size (m))';
 uinf = bim1c_norm (m, u, 'inf');
 uL2  = bim1c_norm (m, u, 'L2');
 uH1  = bim1c_norm (m, u, 'H1');
 assert ([uinf, uL2, uH1], [V, V*sqrt(L), V*sqrt(L)], 1e-12);
endwhile
error: ASSERT errors for:  assert ([uinf, uL2, uH1],[V, V * sqrt(L), V *
sqrt(L)],1e-12)

  Location  |  Observed  |  Expected  |  Reason
    (3)        0.051682     0.051682     Abs err 4.7937e-12 exceeds tol 1e-12
by 4e-12


The patch attached to this bug report fixes the problem.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 16 Jan 2019 10:28:20 PM UTC  Name: xtest-in-bim1c_norm.patch  Size:
445B   By: rlaboiss

<http://savannah.gnu.org/bugs/download.php?file_id=45988>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55494>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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