source of primp



Wolfgang,

primep is defined in src/ifactor.lisp 

If I search for function foo I first try searching for "(defun $foo" in /src/. 
Then "(defmfun $foo", then "(defmacro $foo". This helps in most cases. 

Functions in /share/ can be defined on Maxima level by foo(var):= ..., which isn't easy to 
find, but in case of share functions usually the documentation says in which package the 
function is defined.

HTH
Volker

Am 28 Jun 2007 um 13:55 hat Wolfgang Lindner geschrieben:

> dear experts,
> 
> I want to know where (and how) to find the source code of the number theoretic functions
> like primep() etc. 
> 
> I do:
> 
> (%i) ?? primp
> 
> but the output gives me no hint .. 
> and I vergot (or never know) which command tells me the source file in which a function
> definition lives.
> 
> HTH  Wolfgang 
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima