MathGroup Archive 2007

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

Search the Archive

Re: WhichRootOfUnity

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73084] Re: WhichRootOfUnity
  • From: "dimitris" <dimmechan at yahoo.com>
  • Date: Thu, 1 Feb 2007 04:07:36 -0500 (EST)
  • References: <epnag3$de0$1@smc.vnet.net><epp78r$dsa$1@smc.vnet.net>

On Jan 31, 6:51 am, Jean-Marc Gulliet <jeanmarc.gull... at gmail.com>
wrote:
> Artur wrote:
> > << NumberTheory`NumberTheoryFunctions`
> > WhichRootOfUnity[(-1 + I Sqrt[3])/2]
>
> > Who knows how this function works because nothing happened when I executed  
> > this procedure.
>
> > ARTUR
>
> Hi Artur,
>
> I do not know what's going on: I have tried the example given in the
> online help and no output was returned.
> In[1]:=
> Needs["NumberTheory`NumberTheoryFunctions`"]
>
> In[2]:=
> ?WhichRootOfUnity
>
> "WhichRootOfUnity[a] returns {n,k} if a = Exp(2 Pi I k / n) for
> a (unique) pair of nonnegative coprime integers k and n with k<n,
> otherwise returns unevaluated."
>
> In[3]:=
> WhichRootOfUnity[(1+I Sqrt[3])/2]
>
> In[4]:=
> $Version
>
> Out[4]=
> 5.2 for Microsoft Windows (June 20, 2005)
>
> Regards,
> Jean-Marc

The more strange is that even in the Mathematica Book there is no
Output corresponding to this example
see

http://documents.wolfram.com/mathematica/Add-onsLinks/StandardPackages/NumberTheory/NumberTheoryFunctions.html

or execute

In[23]:=
FrontEndExecute[{HelpBrowserLookup["AddOns",
"NumberTheory`NumberTheoryFunctions`", "1.70"]}]

I also search the GuideBooks of M. Trott and there was no reference.

For anyone interested you can find the package
NumberTheory`NumberTheoryFunctions in this link:

http://www.uoregon.edu/~btruong/Mathematica%205.0.app/AddOns/StandardPackages/NumberTheory/NumberTheoryFunctions.m


  • Prev by Date: MainRoot Mathematica procedure
  • Next by Date: Root finding of multivariable nonlinear equations
  • Previous by thread: MainRoot Mathematica procedure
  • Next by thread: Root finding of multivariable nonlinear equations