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

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

[Octave-bug-tracker] [bug #52706] mpower compatibility behavior


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #52706] mpower compatibility behavior
Date: Wed, 20 Dec 2017 06:53:10 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

URL:
  <http://savannah.gnu.org/bugs/?52706>

                 Summary: mpower compatibility behavior
                 Project: GNU Octave
            Submitted by: caliari
            Submitted on: Wed 20 Dec 2017 11:53:09 AM UTC
                Category: Octave Function
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

It is easy to check that, e.g., A^7 is computed in octave as


A2 = A * A;
A4 = A2 * A2;
(A * A2) * A4


while in matlab as


A2 = A * A;
A4 = A2 * A2;
A4 * (A2 * A)


In exact arithmetic it is obviously the same. The modification would be


result = result * atmp; -> result = atmp * result;


in xpow.cc. Any objections?




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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