Re: FLTMA: A little group theory
- From: "The Dougster" <DGoncz@xxxxxxx>
- Date: 25 Oct 2006 05:06:30 -0700
Markus Triska wrote:
"The Dougster" <DGoncz@xxxxxxx> writes:
I wonder if Prolog or any language allows syntax like the following
The Function phi of integer x returns integer y such that
y = 0
for z = 1 to z-1
if y mod x > 0 then y = y + 1
next z
return y
Please post a corrected definition (should z go from 1 to z-1? should
the loop body be independent from z?), and I'll post a Prolog version.
Best wishes, -- Markus Triska
The Function Phi of the Integer x Returns the Integer y Such That
y = 0
For z = 1 to x-1
if x mod z > 0 Then y = y + 1
next z
Return the Integer y
(pause to see What Hath Doug Writ)
Hm.
Looks right.
Doug
.
- Follow-Ups:
- Re: FLTMA: A little group theory
- From: Chip Eastham
- Re: FLTMA: A little group theory
- From: Markus Triska
- Re: FLTMA: A little group theory
- References:
- Re: FLTMA: A little group theory
- From: Chip Eastham
- Re: FLTMA: A little group theory
- From: The Dougster
- Re: FLTMA: A little group theory
- From: The Dougster
- Re: FLTMA: A little group theory
- From: Chip Eastham
- Re: FLTMA: A little group theory
- From: The Dougster
- Re: FLTMA: A little group theory
- From: Chip Eastham
- Re: FLTMA: A little group theory
- From: The Dougster
- Re: FLTMA: A little group theory
- From: Chip Eastham
- Re: FLTMA: A little group theory
- From: The Dougster
- Re: FLTMA: A little group theory
- From: The Dougster
- Re: FLTMA: A little group theory
- From: The Dougster
- Re: FLTMA: A little group theory
- From: Chip Eastham
- Re: FLTMA: A little group theory
- From: The Dougster
- Re: FLTMA: A little group theory
- From: Chip Eastham
- Re: FLTMA: A little group theory
- From: The Dougster
- Re: FLTMA: A little group theory
- From: Markus Triska
- Re: FLTMA: A little group theory
- Prev by Date: Re: Automorphisms of the Klein curve
- Next by Date: Re: Proyective Module... easy?
- Previous by thread: Re: FLTMA: A little group theory
- Next by thread: Re: FLTMA: A little group theory
- Index(es):