Generating Valid examples for a list of Functions
- To: mathgroup at smc.vnet.net
- Subject: [mg108374] Generating Valid examples for a list of Functions
- From: Syd Geraghty <sydgeraghty at me.com>
- Date: Mon, 15 Mar 2010 05:02:01 -0500 (EST)
Hi all,
How can I programmatically generate a set of valid examples from the
Documentation Center for a small list of Function names I am interested
in?
Select[Names["*"], (Length[Quiet[Options[ToExpression@#, Method]]] == 1) &, 10]
>>{"Accumulate", "ActionMenu", "AlgebraicRules", "ArrayPlot",
"BarChart", \
"BarChart3D", "BezierFunction", "Binarize", "BooleanConvert", \
"BooleanMinimize"}
e.g.
Example[{"Accumulate", "ActionMenu", "AlgebraicRules", "ArrayPlot",
"BarChart", \
"BarChart3D", "BezierFunction", "Binarize", "BooleanConvert", \
"BooleanMinimize"}]
I want the output of Example[] to be:
{"Accumulate[{a, b, c, d}]", "ActionMenu["Print Factorials", {"4!" :>
Print[4!], "7!" :> Print[7!],
"10!" :> Print[10!]}]", ..., "BooleanMinimize[a =E2=87=93 b =E2=87=92
=C2=AC a =E2=87=93 b]"}
I selected the first example from the Documentation Center for each
function to be more specific about the desired output of Example[].
Thanks in advance ...
Cheers .... Syd
Syd Geraghty B.Sc, M.Sc.
sydgeraghty at mac.com
Mathematica 7.0.1.0 for Mac OS X x86 (64 - bit) (12th September 2009)
MacOS X V 10.6.1 Snow Leopard
MacBook Pro 2.33 GHz Intel Core 2 Duo 2GB RAM