Logiweb(TM)

Logiweb aspects of floor1 ( " , " ) in pyk

Up Help

The "pyk" aspect

Define pyk of floor1 ( asterisk , asterisk ) as "floor1 ( "! , "! )" end define

The "value" aspect

define value of floor1 ( x , y ) as if x < y then 0 :: x else LET floor1 ( x , 2 * y ) BE { z IN if z tail < y then { 2 * { z head } } :: { z tail } else { { { 2 * { z head } } + 1 } :: { z tail - y } } } 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