0
$\begingroup$

I used NMinimize, and I get a result which after some modification is like:

   avec = {x$1 -> 0.50978, x$3 -> 0.508274, x$4 -> 0.431230, 
   x$5 -> 0.46221, x$6 -> 0.554047}

Do you know any way to change this to a list of numbers? In other words I want to get rid of the x$ symbols and arrows and just have the numbers as a list:

   { 0.50978, 0.508274,  0.431230, 
    0.46221,  0.554047}

Thank you

$\endgroup$
3
  • 4
    $\begingroup$ avec // Values $\endgroup$ – cvgmt Oct 15 '20 at 22:57
  • $\begingroup$ Thank you so much $\endgroup$ – Delaram Nematollahi Oct 15 '20 at 22:59
  • 2
    $\begingroup$ Or Last /@ avec $\endgroup$ – Bob Hanlon Oct 16 '20 at 0:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.