bugGNU Octave - Bugs: bug #57838, The cos function is returning...

 
 

bug #57838: The cos function is returning wrong values at few parameters.

Submitter:  Gurjeet Singh <gurjeet>
Submitted:  Mon 17 Feb 2020 04:14:07 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 5.2.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 17 Feb 2020 04:50:22 PM UTC, comment #1: 
Dmitri A. Sergatskov <dasergatskov>
Mon 17 Feb 2020 04:14:07 PM UTC, original submission:  

'cos' is a built-in function from the file libinterp/corefcn/mappers.cc.


cos(pi*(1/2))
ans =    6.1232e-17

The actual ans should be 0;

Gurjeet Singh <gurjeet>

 

(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 dasergatskov (Posted a comment)
  • -email is unavailable- added by gurjeet (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
    2020-02-17 mtmiller StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code