Re: FLTMA: A little group theory



"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
.



Relevant Pages

  • Re: FLTMA: A little group theory
    ... I wonder if Prolog or any language allows syntax like the following ... Please post a corrected definition (should z go from 1 to z-1? ... the loop body be independent from z?), and I'll post a Prolog version. ... The Function Phi of the Integer x Returns the Integer y Such That ...
    (sci.math)
  • Re: PSP
    ... I'd be interested in your opinions on syntax of PSP... ... Furthermore, if a query fails, it does not ... > look like it allows the programmer to directly mix the Prolog and HTML. ... Another downside is that predicates cannot be ...
    (comp.lang.prolog)
  • Algorithm transformation
    ... (sorry if the syntax is prolog like, but it is the programming language ... And the target is to obtain the set of rules for the addition of one ...
    (comp.theory)
  • Re: A quirk in the syntax of Prolog
    ... ISO 13211-1:1995 cleaned up most of the ambiguous issues. ... with double brackets. ... GNU Prolog behaves that way; ... What is missing in most systems is a way to enforce strict syntax. ...
    (comp.lang.prolog)
  • Re: Ontology about prolog
    ... Syntax is related to the concepts at some level. ... some hypertext to describe Prolog to someone who doesn't know anything ... ontology for, since this would determine what level of granularity to ...
    (comp.lang.prolog)