|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #65618] Complex numbers cant be computed when the value is 0 and in a vector |
Date: | Sun, 21 Apr 2024 05:24:06 -0400 (EDT) |
URL: <https://savannah.gnu.org/bugs/?65618> Summary: Complex numbers cant be computed when the value is 0 and in a vector Group: GNU Octave Submitter: None Submitted: Sun 21 Apr 2024 09:24:05 AM UTC Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Release: 7.3.0 Discussion Lock: Any Operating System: GNU/Linux Fixed Release: None Planned Release: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sun 21 Apr 2024 09:24:05 AM UTC By: Anonymous num=1 den=[1 1] fun=@(s) num*s'.^[ length(num)-1:-1:0]' ./(den*s'.^[ length(den)-1:-1:0]') fun(0*j)%<----the 0 works fun(j) fun(2*j) fun([0*j j 2*j])%<-----the 0 gives NaN but it works when the 0 is alone fun([ j 2*j]) when calculating complex numbers of value 0 in a vector it gives NaN but it works alone and with other numbers in a vector. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?65618> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |