Logiweb(TM)

Logiweb aspects of logxor ( " , " ) in pyk

Up Help

The "pyk" aspect

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

The "value" aspect

optimized define value of logxor ( x , y ) as norm { x is val : { y is val : { x is int : { y is int : if x = -1 then lognot ( y ) else if y = -1 then lognot ( x ) else if x = 0 then y else if y = 0 then x else double ( oddp ( x ) != oddp ( y ) , logxor ( half ( x ) , half ( 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