bugGNU Octave - Bugs: bug #49036, realpow: produced complex result

 
 

bug #49036: realpow: produced complex result

Submitted by:  Guillaume <gyom>
Submitted on:  Fri 09 Sep 2016 09:21:20 AM UTC  
 
Category:  Test Suite Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  None Assigned to:  None
Originator Name:  Guillaume Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Sat 10 Sep 2016 10:06:53 AM UTC, comment #3: 

Closed as duplicate

Avinoam Kalma <avinoam>
Project Member
Fri 09 Sep 2016 06:34:27 PM UTC, comment #2: 

Thanks - I had somehow missed the earlier bug reports. I use gcc 4.8.3. It can be marked as duplicate of bug #47775.

Guillaume <gyom>
Fri 09 Sep 2016 04:27:12 PM UTC, comment #1: 

I believe this has been seen on Ubuntu 14.04 also. I think it is a limitation of older versions of either gcc or libm. I think it has been discussed before and decided not to change anything, just document it as a known failure with older runtimes. See bug #47775 and bug #48514. One of these bug numbers should be added to the %!test block.

Mike Miller <mtmiller>
Project Administrator
Fri 09 Sep 2016 09:21:20 AM UTC, original submission:  

Running "make check" on latest dev version, there is a failed test with realpow:

octave:1> test realpow
***** assert (realpow (1i,2), -1)
!!!!! test failed
realpow: produced complex result
octave:2> realpow (1i,2)
error: realpow: produced complex result
error: called from
    realpow at line 36 column 5
octave:9> 1i.^2
ans = -1.0000e+00 + 1.2246e-16i

It works as expected in the packaged version from the distribution (Octave 4.0.3 on OpenSUSE 13.2).

Guillaume <gyom>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-10 avinoam Open/ClosedOpen => Closed
    2016-09-10 avinoam Dependencies- => Depends on bugs #47775

    Back to the top


    Powered by Savane 3.5