|
From: | Doug Stewart |
Subject: | [Octave-bug-tracker] [bug #57132] [octave forge] (control) step: size of output y is not same as the size of input t |
Date: | Thu, 31 Oct 2019 09:05:40 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36 |
Follow-up Comment #5, bug #57132 (project octave): The problem arises from the fact that a vector of time values was given as input to the step function, and then it is converted to a start time, end time and a step value (dt). This is then passed on to some subfunction which converts it back to a vector. In this situation there are binary roundoff problems where numbers that should be 0.01 are actually calculated to be 0.00999999999998 This then leads to having a different final vector length. I am trying to come up with the correct way to overcome this kind of problem. Line 106 of __time_response__.m is where it starts. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?57132> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |