ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 12 Mar 2013 05:07:31 -0500How to create a Sage directory of all functions?http://ask.sagemath.org/question/9904/how-to-create-a-sage-directory-of-all-functions/Can one easily get the list of all defined functions in Sage to something like a directory including at least following information:
[
* function name
* allowed input argument numbers (possibly several)
* allowed input argument types for each allowed input argument
* function result values numbers (possibly several depending on input arguments)
* function result values types for each result value
,
* next similar etc.
]
so that for example one could easily construct an expression-set having all allowed functions in function argument places up to a given level?
For example:
Expression-set for 3 levels is something like:
[
sin(cos(x))
sin(sin(x))
sin(tan(x))
sin(x^a)
(x^a)^b
myfun(sin(k),cos(n))
etc.
];
(All combinations. Here only 3 levels given as an example. Here function myfun may have several return variables each can be a variable, vector, matrix, function name etc.)
Tue, 12 Mar 2013 04:47:33 -0500http://ask.sagemath.org/question/9904/how-to-create-a-sage-directory-of-all-functions/Comment by Nathann for <p>Can one easily get the list of all defined functions in Sage to something like a directory including at least following information:</p>
<p>[</p>
<ul>
<li>function name</li>
<li>allowed input argument numbers (possibly several)</li>
<li>allowed input argument types for each allowed input argument</li>
<li>function result values numbers (possibly several depending on input arguments)</li>
<li>function result values types for each result value</li>
</ul>
<p>,</p>
<ul>
<li>next similar etc.</li>
</ul>
<p>]</p>
<p>so that for example one could easily construct an expression-set having all allowed functions in function argument places up to a given level?</p>
<p>For example:</p>
<p>Expression-set for 3 levels is something like:</p>
<p>[</p>
<p>sin(cos(x))</p>
<p>sin(sin(x))</p>
<p>sin(tan(x))</p>
<p>sin(x^a)</p>
<p>(x^a)^b</p>
<p>myfun(sin(k),cos(n))</p>
<p>etc.</p>
<p>];</p>
<p>(All combinations. Here only 3 levels given as an example. Here function myfun may have several return variables each can be a variable, vector, matrix, function name etc.)</p>
http://ask.sagemath.org/question/9904/how-to-create-a-sage-directory-of-all-functions/?comment=18078#post-id-18078The closest thing we have is this, I believe : http://www.sagemath.org/doc/reference/. Note that when you want to get the help of a function, you only need to add a ? at the end of its name. For instance, try to type sin? in SageTue, 12 Mar 2013 05:07:31 -0500http://ask.sagemath.org/question/9904/how-to-create-a-sage-directory-of-all-functions/?comment=18078#post-id-18078