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

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

[Octave-bug-tracker] [bug #38961] fplot needs adaptive scaling algorithm


From: Rik
Subject: [Octave-bug-tracker] [bug #38961] fplot needs adaptive scaling algorithm
Date: Thu, 11 Jul 2013 16:32:20 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

Update of bug #38961 (project octave):

              Item Group:             Performance => Inaccurate Result      
                  Status:               Need Info => Confirmed              
                 Summary: print freezes when printing certain fplots => fplot
needs adaptive scaling algorithm

    _______________________________________________________

Follow-up Comment #5:

I overhauled fplot in this changeset
(http://hg.savannah.gnu.org/hgweb/octave/rev/b34202b24212).  I upgraded it to
be more Matlab compatible and I added an additional stopping condition to
detect when the algorithm is failing.  This works for functions which end up
having a relative tolerance that won't converge because the function value at
0 is near 0.  However, the real long-term fix is to add an adapative scaling
algorithm of the sort used in the quadrature routines.  Basically, the current
algorithm is no good if the function contains discontinuities.  Try


fplot (@tan, [-2,2])


to see just how bad.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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