|
From: | Marco Caliari |
Subject: | [Octave-bug-tracker] [bug #56632] polyval should return with invalid input |
Date: | Mon, 15 Jul 2019 09:16:44 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0 |
URL: <https://savannah.gnu.org/bugs/?56632> Summary: polyval should return with invalid input Project: GNU Octave Submitted by: caliari Submitted on: Mon 15 Jul 2019 01:16:42 PM UTC Category: Octave Function Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: Any _______________________________________________________ Details: The following code should return with an error polyval (@(x) sin(x), 1) but it passes. Probably the check elseif (! isvector (p)) should be substituted with elsif ((! isvector) || (isvector (p) && ! isnumeric (p))) _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?56632> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |