1 #asap96 paper example, section 5
6 #-------------------------------
21 #-------------------------------------------------------
23 # 0 <= Q <= P : 1/8 Q^2 + [3/4, 1/2]_Q Q + [1, 3/8]_Q
24 # P <= Q <= 2P : PQ - 1/2 P^2 + 1/2 P - 3/8 Q^2 + [1/4, 0]_Q Q + [1, 3/8]_Q