[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New function: lsqnonlin
From: |
Ben Abbott |
Subject: |
Re: New function: lsqnonlin |
Date: |
Thu, 3 Apr 2008 08:27:43 -0400 |
On Apr 2, 2008, at 11:58 PM, Bill Denney wrote:
If someone has a source of additional tests, I would appreciate it.
Thanks,
Bill
There's an example at the link below.
http://riebecca.blogspot.com/2007/12/supercomputing-course-example.html
Specifically,
%!test
%! C = [rotdim(2.^(2:7)*1e8,-1), ones(6,1), rotdim(2.^(3:8),-1)
ones(6,1)];
%! d = [58.6; 30.0; 15.2; 7.7; 3.9; 2.1];
%! x = [2.3357e-6; 0.4229; 0; 0];
%! assert (lsqnonneg (C, d), x, 0.0001)
It fails for me .... however, my current build of Octave might be
suspect.
Ben