the following question is from this website Example 2.
Evaluate $\iint\limits_{S}{{z\ dS}}$ where $S$ is the upper half of a sphere of radius 2.
My code here is basically from How can I evaluate surface integral in Mathematica?. I am using 12.0 version of mathematica
Clear[DoubleContourIntegral];
DoubleContourIntegral[field_?VectorQ,
surface : {changeOfVars : ({x_, y_, z_} ->
param : {xuv_, yuv_, zuv_}), {u_, u1_, u2_}, {v_, v1_,
v2_}}] :=
Integrate[
Dot[field /. Thread[changeOfVars],
Cross[D[param, u], D[param, v]]], {u, u1, u2}, {v, v1, v2}];
Clear[a, b, c];
S = {{x, y, z} -> {2 Sin[u] Cos[v], 2 Sin[u] Sin[v], 2 Cos[u]}, {u,
0, \[Pi]/2}, {v, 0, 2 \[Pi]}};
F = {0, 0, z};
\[DoubleContourIntegral]F \[DifferentialD]S
The results will be different from the one the aurhor provided. What's wrong?