bugGNU Octave - Bugs: bug #59685, sinpi, cospi, sind, cosd small...

 
 

bug #59685: sinpi, cospi, sind, cosd small errors

Submitter:  Rik <rik5>
Submitted:  Mon 14 Dec 2020 10:27:32 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 14 Dec 2020 10:27:32 PM UTC, original submission:  

The functions named in this bug report are in active development on the development branch.  I wanted to post a bug report that could be used to track any problems.

For example, the BIST tests were incomplete so recent changes to make the algorithm more accurate also caused the functions to lose the ability to process complex inputs.  Oops.  That capability has been restored, but the function is still not as accurate as its Matlab equivalent.

For example, cos(x) is an even function so cos (x) == cos (-x).  However, this is not true for certain values in Octave.  For example,


cosd (67) - cosd(-67)
ans = 5.5511e-17


Matlab gets this right with an error or 0.

Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-ec04.
    Corresponding source code