[S] factors (divisors ) of an integer

mona kanaan (M.N.Kanaan@open.ac.uk)
Thu, 10 Sep 1998 12:10:01 +0100 (BST)


Dear all,
I wonder whether there is an already built in Splus function to find
the divisors of a given integer, if so could you please point it out to
me.
Or if someone has already written such a function, could you
please pass it over, if possible.

The function I am looking for works sth like this

N <- 6
DN <- DIV(N)
DN
1 2 3 6

Thanks a lot,
Mona

_/_/ _/_/ _/_/_/_/ _/_/ _/ _/_/_/_/ email:M.N.Kanaan@open.ac.uk
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ Statistics Dept.
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/_/_/ The Open University
_/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ Milton Keynes
_/ _/ _/ _/_/_/_/ _/ _/_/ _/ _/ U.K. MK7 6AA

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news