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x(3)+x(4)-(1-x(5))*x(3)-(1-x(5))*x(4)-x(3)*x(4)+(1-x(5))*x(3)*x(4);
F(10) = -0.99552+(1-x(4));
F(11) = -0.93788+(1-x(3))+(1-x(1))+x(2)+x(4)+x(5)-(1-x(3))*(1-x(1))-(1-x(3))*x(2)-(1-x(3))*x(4)-(1-x(3))*x(5)-(1-x(1))*x(2)-(1-x(1))*x(4)-(1-x(1))*x(5)-x(2)*x(4)-x(2)*x(5)-x(4)*x(5)+(1-x(3))*(1-x(1))*x(2)+(1-x(3))*(1-x(1))*x(4)+(1-x(3))*(1-x(1))*x(5)+(1-x(3))*x(2)*x(4)+(1-x(3))*x(2)*x(5)+(1-x(3))*x(4)*x(5)+(1-x(1))*x(2)*x(4)+(1-x(1))*x(2)*x(5)+(1-x(1))*x(4)*x(5)+x(2)*x(4)*x(5)-(1-x(3))*(1-x(1))*x(2)*x(4)-(1-x(3))*(1-x(1))*x(2)*x(5)-(1-x(3))*(1-x(1))*x(4)*x(5)-(1-x(3))*x(2)*x(4)*x(5)-(1-x(1))*x(2)*x(4)*x(5)+(1-x(3))*(1-x(1))*x(2)*x(4)*x(5);
F(12) = -0.99729+(1-x(4))+x(5)-(1-x(4))*x(5);
F(13) = -0.99721+(1-x(4))+(1-x(2))-(1-x(4))*(1-x(2));
F(14) = -0.8505+x(1)+x(2)-x(1)*x(2);
F(15) = -0.92467+(1-x(1))+x(2)+x(3)+x(5)-(1-x(1))*x(2)-(1-x(1))*x(3)-(1-x(1))*x(5)-x(2)*x(3)-x(2)*x(5)-x(3)*x(5)+(1-x(1))*x(2)*x(3)+(1-x(1))*x(2)*x(5)+(1-x(1))*x(3)*x(5)+x(2)*x(3)*x(5)-(1-x(1))*x(2)*x(3)*x(5);
F(16) = -0.39612+(1-x(1));
F(17) = -0.829+(1-x(3))+x(2)-(1-x(3))*x(2);
err = norm(F);
