Re: Select Output of FindMinimum
- To: mathgroup at smc.vnet.net
- Subject: [mg25683] Re: Select Output of FindMinimum
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Thu, 19 Oct 2000 04:35:13 -0400 (EDT)
- References: <8sjj52$fti@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Phillipp Some suggestions: Use positions of parts that you want res = {0.00138329, {u -> 1.88935}} {0.00138329, {u -> 1.88935}} res[[1]] 0.00138329 res[[2, 1, 2]] 1.88935 Use positions of parts, plus replacement: u /. res[[2]] 1.88935 Note the use of replacement directly into an expression. a + u^2 /. res[[2]] 3.56964\[InvisibleSpace] + a -- Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565 "Philipp Gunz" <gunz at treangeli.at> wrote in message news:8sjj52$fti at smc.vnet.net... > Im having troubles selecting the output of the FindMinimum-Function: > > minimize = > FindMinimum[(neupunkte[[1]] - splinespec[u]).(neupunkte[[1]] - > splinespec[u]), {u, 0.0001, splinespec[[2, 2]]}, Compiled -> True] > > OUT: {0.00138329, {u -> 1.88935}} > > What I need for further calculations is the value of u ... and I don´t know > how to extract that information. > > Yours > > Philipp Gunz > > >