1/8*(4*cos(x)^5-8*cos(x)^3+((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2+1/2*I,1/2*2^(1/2))*cos(x)^3+((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2-1/2*I,1/2*2^(1/2))*cos(x)^3+((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2-1/2*I,1/2*2^(1/2))*cos(x)*I-I*((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2-1/2*I,1/2*2^(1/2))*cos(x)^2+((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2-1/2*I,1/2*2^(1/2))*I+((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2-1/2*I,1/2*2^(1/2))*cos(x)^2-I*((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2+1/2*I,1/2*2^(1/2))*cos(x)+((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2+1/2*I,1/2*2^(1/2))*cos(x)^2+4*cos(x)-((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2+1/2*I,1/2*2^(1/2))*cos(x)-((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2-1/2*I,1/2*2^(1/2))*cos(x)+((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2+1/2*I,1/2*2^(1/2))*cos(x)^3*I+((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2+1/2*I,1/2*2^(1/2))*cos(x)^2*I-I*((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2-1/2*I,1/2*2^(1/2))*cos(x)^3-((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2-1/2*I,1/2*2^(1/2))-I*((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2+1/2*I,1/2*2^(1/2))-((1-cos(x)+sin(x))/sin(x))^(1/2)*2^(1/2)*((-1+cos(x)+sin(x))/sin(x))^(1/2)*((-1+cos(x))/sin(x))^(1/2)*EllipticPi(((1-cos(x)+sin(x))/sin(x))^(1/2),1/2+1/2*I,1/2*2^(1/2)))*(sin(x)*cos(x)^3)^(1/2)/cos(x)^2/sin(x)^3