| Author |
Comment/Response |
Sven
|
12/19/06 04:46am
Hi,
Defining an errorfunction
ErrorFun[a_, b_] := (Eigenvalues[{{a,
1.}, {1., b}}] - {4.118033988749895, 1.881966011250105}).(Eigenvalues[{{
a, 1.}, {1., b}}] - {4.118033988749895, 1.881966011250105});
and executing
sol = NMinimize[ErrorFun[a, b], {a, b}]; {sol, ErrorFun[a, b] /. sol[[2]]}
yields
{{8.97214, {a -> 3., b -> 3.}}, 8.97214},
but the minimum of this function is at
ErrorFun[2.5, 3.5]=0.
I don't understand this result at all...
Thanks in advance,
Sven
URL: , |
|