[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33135] nthroot failure for complex inputs
From: |
Pascal Dupuis |
Subject: |
[Octave-bug-tracker] [bug #33135] nthroot failure for complex inputs |
Date: |
Thu, 21 Apr 2011 10:04:46 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.04 (lucid) Firefox/3.6.16 |
URL:
<http://savannah.gnu.org/bugs/?33135>
Summary: nthroot failure for complex inputs
Project: GNU Octave
Submitted by: cdemills
Submitted on: jeu. 21 avril 2011 10:04:45 GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Pascal Dupuis
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.4
Operating System: GNU/Linux
_______________________________________________________
Details:
Some peoples need basic math lessons.
(nthroot(1+j, 5))^5
ans = -0.077760 - 0.077760i
at nthroot.m line 62:
y = abs (x) .^ (1/n) .* sign (x);
This is valid only if x is real ! In case of complex numbers, the value is
y = abs(x).^(1/n) .* exp(j*arg(x)/n))
Regards
Pascal
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33135>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33135] nthroot failure for complex inputs,
Pascal Dupuis <=