MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Help with minimization of Eigenvalues

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87792] Re: Help with minimization of Eigenvalues
  • From: Chimico <Dario.Bressanini at gmail.com>
  • Date: Wed, 16 Apr 2008 22:34:56 -0400 (EDT)
  • References: <fu4ll6$sfq$1@smc.vnet.net> <fu4n2k$30$1@smc.vnet.net>

On Apr 16, 1:14 pm, Jens-Peer Kuska <ku... at informatik.uni-leipzig.de>
wrote:


> Eig[a_?NumericQ, b_?NumericQ] := With[{m = {{a, b}, {b, -a + 1}},
>     s = {{1, 0}, {0, 3 a}}},
>    Eigenvalues[N[{m, s}]] // First
>    ]
>
> may help.

Thanks. Unfortunately my matrices cannot be local and defined in the
function Eig, and if I write

Eig[a_?NumericQ, b_?NumericQ] := With[{m1 = m, s1 = s},
Eigenvalues[N[{m1,
    s1}]] // First]

trying to assign the global matrices m and s to the local m1 and s1
still does not work.

I do not understand the logic. What is happening?

Dario


  • Prev by Date: Re: Possible bug in WAV export
  • Next by Date: Re: Select from list
  • Previous by thread: Re: Help with minimization of Eigenvalues
  • Next by thread: Re: Help with minimization of Eigenvalues