MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Can Divisors Be Compile?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg59604] Can Divisors Be Compile?
  • From: "-mike" <raintree at ureach.com>
  • Date: Sat, 13 Aug 2005 03:26:42 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

dvs = Compile[{{a, _Integer} }, Module[{w}, w = {0}; Length[ w =
       Divisors[a]]; w ]];
dvs[6]-> {1, 2, 3, 6}

Hear I've trick mathematica by using Length[].

I'm looking for example of a compiled Divisors[].


  • Prev by Date: Using the VectorCalculus
  • Next by Date: Re: Linking to Mathematica Kernel from Excel
  • Previous by thread: Re: Problem finding integral of exponentials
  • Next by thread: Re: Can Divisors Be Compile?