On 10.11.2009, at 20:32, <[email protected]> <[email protected]>
wrote:
> From: [email protected]
> Date: Tue, 10 Nov 2009 09:41:52 +0100
> To: [email protected]; [email protected]
> Subject: [OctDev] Bugs in control/tzero function (was Re: Discrete
feedback loop)
>
> I made some further investigations (I'm writing pzmap.m for
control-oo at the moment, which needs to compute the zeros of a
system) and came to the conclusion that tzero.m from the control
package is buggy. The attachment contains an example where the
discrepancy of the results is big: Matlab gets -13.2759, -0.0155,
12.5774, while tzero gets -5.708333, -0.015561, 31.509741.
Apparently the bug has been undiscovered for about 15 (!) years.
>
> The bad thing is that I reused the code from tzero.m in the
control-oo package ...
>
> Regards,
> Lukas
>
>
Hi Lukas.
try using tzero2, it works for me on your example. What the
difference is I don't know.
Doug Stewart
Hi Doug,
That's strange. I tried tzero2 on my PPC- as well as on my Intel-Mac
and I get
-1
-1
-1
-1
-1
-10
That's even worse than tzero, because tzero got at least one out of
three zeros right ;-)
Regards
Lukas
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev