GEN demo.trace and math.pow