Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Option Values' topicStudent Support Forum > General > Archives > "Option Values"

Help | Reply To Topic
Author Comment/Response
Isaac
02/28/11 09:15am

Hello,

I would like to be able to determine all the possible settings for a given option without having to manually look them up in the documentation.

For example, the function "FindFit" has an option called "Method" which may have any one of the following values:

"ConjugateGradient"
"Gradient"
"LevenbergMarquardt"
"Newton"
"NMinimize"
"QuasiNewton",

with the default value being Automatic. I obtained the option values for "FindFit" by looking at its documentation under "More Information". I can use

OptionValue[FindFit, Method]

to get the default option value for "Method", which happens to be Automatic. Moreover,

FullDefinition[FindFit]

gives a list of all of the options under the message FindFit::bdmtd (where "bdmtd" presumably means "bad method"). Unfortunately, "FullDefinition" does not provide the same level of detail for all functions. For example,

FullDefinition[NRoots]

does not give the "Method" option values of "NRoots" which are "Aberth",
"CompanionMatrix", "JenkinsTraub", and Automatic.

Isaac

URL: ,
Help | Reply To Topic