[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59685] sinpi, cospi, sind, cosd small errors
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #59685] sinpi, cospi, sind, cosd small errors |
Date: |
Mon, 14 Dec 2020 17:27:34 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?59685>
Summary: sinpi, cospi, sind, cosd small errors
Project: GNU Octave
Submitted by: rik5
Submitted on: Mon 14 Dec 2020 02:27:32 PM PST
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59685>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #59685] sinpi, cospi, sind, cosd small errors,
Rik <=