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

 
 

bug #49036: realpow: produced complex result

Submitter:  Guillaume <gyom>
Submitted:  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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Closed as duplicate

Avinoam Kalma <avinoam>
Group 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>
Group Member
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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group 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.13-f8d8.
    Corresponding source code