Mathematica Help: Automating Calculations with afindminimum Function

  • Context: Mathematica 
  • Thread starter Thread starter srik
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
srik
Messages
2
Reaction score
0
I've got a very simple problem, but I don't really know that much code. I want to automate my calculations. The function afindminimum finds a minimum value, a. I then need that value a to continue. What I'm doing right now is copy-pasting the a to define it. But I want something that takes it out of the result for afindminimum, so that I don't have to copy-paste every time.

http://i2.photobucket.com/albums/y22/srik/math1.jpg

I can extract the second part like this:

http://i2.photobucket.com/albums/y22/srik/math2.jpg

But I want just the number, the thing after the arrow. I don't think Take or Extract or whatever are helpful here. So how then?
 
Last edited by a moderator:
Physics news on Phys.org
nope, that just gives me the whole thing in the {} brackets