MATLAB: How to find surface area

cos(x) + cos(y) + cos(z)surface area

how can I find a surface area of this function on certain interval.
f = @(x,y,z) cos(x) + cos(y) + cos(z);

Best Answer

So probably something close to
f = @(x,y,z) cos(x) + cos(y) + cos(z);
syms x y z real
syms xl xh yl yh zl zh real
F = f(x,y,z);
SA = int(int(int( sqrt( 1 + diff(F,x).^2 + diff(F,y).^2 + diff(F,z).^2), z, zl, zh), y, yl, yh), x, xl, xh);
disp( char(simplify(SA)) )
int(int((ellipticE(zh, 1/(cos(x)^2 + cos(y)^2 - 3)) - ellipticE(zl, 1/(cos(x)^2 + cos(y)^2 - 3)))*(3 - cos(y)^2 - cos(x)^2)^(1/2), y, yl, yh), x, xl, xh)