" EVALUATION OF CARLSON INTEGRALS"; "This program calculates Carlson's elliptic integrals RF(x[1],x[2],x[3]) and RD(x[1],x[2];x[3]) to approximately 8 decimal digits of accuracy."; "It should be called after x[1], x[2]; x[3] have been defined."; " Notice that x[3] is here the repeated argument in the integral RJ(x[1],x[2],x[3];x[3])."; if x[3]<1E-15 then display("RD suspect") end if; eps:=1E-4; quam:=1: sigmaC:=0: e:=1: for i from 1 to 100 while e>eps do xr[1]:=evalf(sqrt(x[1])); xr[2]:=evalf(sqrt(x[2])); xr[3]:=evalf(sqrt(x[3])); lambda:=xr[1]*(xr[2]+xr[3])+xr[2]*xr[3]; delta:=quam/((x[3]+lambda)*xr[3]); sigmaC:=sigmaC+delta; x[1]:=(x[1]+lambda)/4; x[2]:=(x[2]+lambda)/4; x[3]:=(x[3]+lambda)/4; mu1:=(x[1]+x[2]+x[3])/3; X[1]:=x[1]/mu1-1; X[2]:=x[2]/mu1-1; X[3]:=x[3]/mu1-1; quam:=quam/4; e:=evalf(max(abs(X[1]),abs(X[2]),abs(X[3]))); end do: R[F]:=1/sqrt(mu1); mud:=(x[1]+x[2]+3*x[3])/5; R[D]:=3*sigmaC+quam/(mud^(3/2));