bugGNU Octave - Bugs: bug #48950, functions...

 
 

bug #48950: functions cart2pol,cart2sph,pol2cart,sph2cart fail when Z size different from X,Y

Submitted by:  None
Submitted on:  Tue 30 Aug 2016 12:19:31 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.3
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 02 Sep 2016 07:47:03 PM UTC, comment #2:

I checked in a fix here http://hg.savannah.gnu.org/hgweb/octave/rev/1e88747417e6. In the end, I used common_size() not only to bring the inputs to the same size, but also to simplify the input validation. I also added a BIST test for pol2cart and sph2cart to catch this bug.

Thanks for noticing this and suggesting a solution. Closing report.

Rik <rik5>
Project Administrator
Tue 30 Aug 2016 03:48:25 PM UTC, comment #1:

Confirmed. It would be nice to fix this before the 4.2 release.

Rik <rik5>
Project Administrator
Tue 30 Aug 2016 12:19:31 PM UTC, original submission:

These functions fail in some cases with mixed scalar and non-scalar inputs. For example:

Possible solution:

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 02 Sep 2016 07:47:03 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue 30 Aug 2016 03:48:25 PM UTCrik5StatusNone=>Confirmed
      Summaryfunctions cart2pol,cart2sph,pol2cart,sph2cart fail in some cases=>functions cart2pol,cart2sph,pol2cart,sph2cart fail when Z size different from X,Y

    Back to the top


    Powered by Savane 3.1-cleanup1