[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65012] supplying a range of values gives anom
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #65012] supplying a range of values gives anomalous results in user defined function |
Date: |
Mon, 11 Dec 2023 21:58:40 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?65012>
Summary: supplying a range of values gives anomalous results
in user defined function
Group: GNU Octave
Submitter: None
Submitted: Tue 12 Dec 2023 02:58:38 AM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: paradigminversion
Originator Email:
Open/Closed: Open
Release: 8.4.0
Discussion Lock: Any
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 12 Dec 2023 02:58:38 AM UTC By: Anonymous
I've defined a function as follows:
function P = buck (T)
P = (T/(25+T));
#P = ( 257.14 + T );
endfunction
If I run the following:
octave:31> buck(0:100)
It produces a single result:
ans = 0.7104
If I invert the P assignments, thus:
#P = (T/(25+T));
P = ( 257.14 + T );
in the function and run the command:
octave:31> buck(0:100)
Then it gives:
ans =
Columns 1 through 8:
257.14 258.14 259.14 260.14 261.14 262.14 263.14 264.14
...
Columns 97 through 101:
353.14 354.14 355.14 356.14 357.14
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65012>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65012] supplying a range of values gives anomalous results in user defined function,
anonymous <=