[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59934] Unexpected complex result from acos
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #59934] Unexpected complex result from acos |
Date: |
Sat, 23 Jan 2021 20:43:40 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Android 8.0.0; Mobile; rv:84.0) Gecko/84.0 Firefox/84.0 |
URL:
<https://savannah.gnu.org/bugs/?59934>
Summary: Unexpected complex result from acos
Project: GNU Octave
Submitted by: None
Submitted on: Sun 24 Jan 2021 01:43:39 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Missed Error or Warning
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 6.1.0
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
Running acos(x) unexpectedly gives complex numbers if x exceeds +1 due to
numerical roundoff, instead of giving a domain error. This unexpected and
undocumented behavior is not listed by "help acos". The workaround now is to
say "acos(max(min(1,x),-1))" to artificially force it to [-1 +1]. Any thoughts
why it returns a complex number?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59934>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59934] Unexpected complex result from acos,
anonymous <=