파일:Volume under surface.png
testwiki
둘러보기로 이동
검색으로 이동
미리 보기 크기: 500 × 599 픽셀 다른 해상도: 200 × 240 픽셀 | 636 × 762 픽셀
원본 파일 (636 × 762 픽셀, 파일 크기: 56 KB, MIME 종류: image/png)
이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.
| 설명Volume under surface.png | Illustration of volume under a surface (double integral) |
| 날짜 | (UTC) |
| 출처 | self-made with MATLAB |
| 저자 | Oleg Alexandrov |
| Public domainPublic domainfalsefalse |
| 나는 이 작품의 저작권자로서, 이 작품을 퍼블릭 도메인으로 모두에게 공개합니다. 이 공개 선언은 전 세계적으로 유효합니다. 만약 저작권의 포기가 법률적으로 가능하지 않은 경우, 나는 이 작품을 법적으로 허용되는 한도 내에서 누구나 자유롭게 어떤 목적으로도 제한없이 사용할 수 있도록 허용합니다. |
Source code (MATLAB)
% illustration of the volume under a surface
function main()
L=5; % box size
N=100; % number of points in a lot of places
lw=2; % width of lines
alphatop=1; % transparency
alphaside=0.82;
alphabot=0.8;
bluetop =[0, 1, 0.8];
blueside=[0.2, 0.9, 0.8]; %bluetop;%[0, 0, 1];
bluebot=[0.5, 0.5, 0.5]; %bluetop;%[0, 0, 1];
black=[0, 0, 0];
% the function whose surface we will plot
f=inline('10-(x.^2-y.^2)/8', 'x', 'y');
XX=linspace(-L, L, N);
YY=XX;
[X, Y]=meshgrid(XX, YY);
Z=f(X, Y);
% the surface of the side
XS = [XX, 0*XX+L invert_vector(XX), 0*XX-L];
YS = [0*XX-L, YY, 0*XX+L, invert_vector(YY)];
XS = [XS' XS']';
YS = [YS' YS']';
ZS = 0*XS;
ZS(2, :) = f(XS(2, :), YS(2, :));
% the contour of the bottom
XD=[-L, L, L, -L, -L];
YD=[-L, -L, L, L, -L];
ZD=XD*0;
% prepare figure 1 for plotting
figure(1); clf; hold on; axis equal; axis off;
% plot the function u
surf(X, Y, Z, 'FaceColor', bluetop, 'EdgeColor','none', 'FaceAlpha', alphatop); % top
surf(X, Y, 0*Z, 'FaceColor', bluebot, 'EdgeColor','none', 'FaceAlpha', alphabot); % bottom
surf(XS, YS, ZS, 'FaceColor', blueside, 'EdgeColor','none', 'FaceAlpha', alphaside); % sides
phi = -68; theta = 28;
view (phi, theta);
camlight headlight; lighting phong; % make nice lightning
print('-dpng', '-r200', 'Volume_under_surface.png') % save to file.
function Z = invert_vector(X)
N=length(X);
Z = X;
for i=1:N
Z(i)=X(N-i+1);
end
설명
이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다
이 파일에 묘사된 항목
다음을 묘사함
위키데이터 항목 없는 어떤 값
30 12 2007
image/png
파일 역사
날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.
| 날짜/시간 | 섬네일 | 크기 | 사용자 | 설명 | |
|---|---|---|---|---|---|
| 현재 | 2007년 12월 30일 (일) 04:16 | 636 × 762 (56 KB) | wikimediacommons>Oleg Alexandrov | crop |
이 파일을 사용하는 문서
다음 문서 1개가 이 파일을 사용하고 있습니다: