Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2009

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

Search the Archive

Re: Mathematicas simplifications

  • To: mathgroup at
  • Subject: [mg96305] Re: [mg96279] Mathematicas simplifications
  • From: "David Park" <djmpark at>
  • Date: Wed, 11 Feb 2009 05:20:46 -0500 (EST)
  • References: <8450642.1234263950695.JavaMail.root@m02>

Mathematica can't evaluate Divisors[n] until it know what n is. So your
f[n_] formulation is the correct method.

David Park
djmpark at  

From: Kilian Kilger [mailto:kilian at] 


if I type in Mathematica 7 for example


It gives me 


as a response, which is wrong. If I type

f[n_] := Select[Divisors[n],SquareFreeQ]

and then 


it gives me 


which is correct. If I type (afterwards)


again the wrong answer "Divisors[n]" is shown. What am I doing wrong? Same
happens in many other circumstances. 

Thanks in advance,

  • Prev by Date: Re: testing if a point is inside a polygon
  • Next by Date: Re: Log[x]//TraditionalForm
  • Previous by thread: Re: Mathematicas simplifications
  • Next by thread: Re: Mathematicas simplifications