Entering edit mode
                    Zhan Tianyu
        
    
        ▴
    
    40
        @zhan-tianyu-6632
        Last seen 11.2 years ago
        
    Hi all,
      I have a question concerning using R to calculate "x" when
"f(x)"
reaches its minimum, for example x is between -5 and 5. A simple and
naive
method would be divide (-5,5) into 10000 pieces, and then calculate
the
corresponding values of f(x)'s. Then the order of those f(x)'s would
give
me the answer of "x". However, this method is kind of slow and
inaccurate.
I would really appreciate if someone could give me some suggestions of
improving it, or tell me a better method. Thank you.
Best regards,
Tianyu Zhan
        [[alternative HTML version deleted]]
                    
                
                