Logiweb(TM)

Logiweb aspects of logcount1 ( " ) in pyk

Up Help

The "pyk" aspect

Define pyk of logcount1 ( asterisk ) as "logcount1 ( "! )" end define

The "value" aspect

define value of logcount1 ( x ) as norm { x is val : { x is int : if x = 0 then 0 else { logcount1 ( half ( x ) ) + if evenp ( x ) then 0 else 1 } } } end define

The pyk compiler, version 0.1.9 by Klaus Grue,
GRD-2007-07-12.UTC:20:10:57.067491 = MJD-54293.TAI:20:11:30.067491 = LGT-4690987890067491e-6