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

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

[Octave-bug-tracker] [bug #43492] warning: division by zero for some nth


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #43492] warning: division by zero for some nthroots of zero
Date: Thu, 30 Oct 2014 12:33:54 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0

Follow-up Comment #3, bug #43492 (project octave):

I found what the correction is: it is one step of Newton method (see
http://en.wikipedia.org/wiki/Nth_root_algorithm). I also found that without
the correction, nthroot(2^12,6) is not exactly 4 (the error is eps/2), while
it is with the correction. Anyway, it is not clear to me why a single step of
Newton method should give a better result in general. 

What it is less obvious to me is the following: both 2^(log2(2^12)/6) and
exp(log(2^12)/6) give exactly 4 but (2^12)^(1/6) not. How is it computed?

Marco

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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