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

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

[Octave-bug-tracker] [bug #32528] error: memory exhausted


From: Wei-Zhen Deng
Subject: [Octave-bug-tracker] [bug #32528] error: memory exhausted
Date: Tue, 29 Mar 2011 12:54:17 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:2.0.0) Gecko/20100101 Firefox/4.0

Follow-up Comment #7, bug #32528 (project octave):

I think the bug is in the function magform() in file graphics.cc:

      double l = std::log10 (std::abs (x));
      double r = std::fmod (l, 1.);
      a = std::pow (10.0, r);
      b = static_cast<int> (l-r);

After change the above code to:
      
      double l = std::log10 (std::abs (x));
      b = static_cast<int> (l);
      double r = l-b;
      a = std::pow (10.0, r);
 
the bug seems disappeared.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32528>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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