On Sun, 31 May 2009, Robert Dodier wrote:
< On 5/31/09, Sheldon Newhouse <sen1 at math.msu.edu> wrote:
<
< > Is there a routine analogous to the ? or ?? for user defined routines.
<
< Not at present.
<
< > Doing the 'functions' command is not very helpful since it lists all the
< > functions and it is hard to find the name of one particular function.
<
< Well, apropos(foo) finds variables and functions which
< begin with foo, maybe that helps.
There is a simple way for users to document symbols and search for that
documentation using maxima's ability to assign properties to symbols.
Here is an example:
(%i2) my_sq(x):=block([],x^2)$
(%i3) put(my_sq,"function: x -> x^2",'info)$
(%i4) get(my_sq,'info);
(%o4) "function: x -> x^2"
(%i5) my_sq(t);
(%o5) t^2
(%i6) apropos(my_);
(%o6) [my_,my_sq]
(%i7) map(lambda([t],get(t,'info)), %);
(%o7) [false,"function: x -> x^2"]
(%i8) properties(my_sq);
(%o8) [["user properties",info],function]
Leo
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.