Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica help needed; extract/take

  1. Oct 27, 2006 #1
    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.

    [​IMG]

    I can extract the second part like this:

    [​IMG]

    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: Oct 27, 2006
  2. jcsd
  3. Oct 27, 2006 #2

    berkeman

    User Avatar

    Staff: Mentor

    Can you just use % to carry the previous answer forward?
     
  4. Oct 28, 2006 #3
    nope, that just gives me the whole thing in the {} brackets
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Mathematica help needed; extract/take
Loading...