파일:Mollifier illustration.png

testwiki
둘러보기로 이동 검색으로 이동
    원본 파일 (500 × 158 픽셀, 파일 크기: 6 KB, MIME 종류: image/png)

    이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.

    파일 설명

    설명
    Français : fonction mollifiante, C_infini à support compact
    날짜
    출처 자작
    저자 Oleg Alexandrov
    다른 버전
    이 그림은 벡터 그래픽 버전(SVG)이 있습니다. 래스터(비트맵) 그림 대신 벡터 그래픽 그림을 사용하는 것이 좋습니다.

    File:Mollifier illustration.png → File:Mollifier Illustration.svg

    벡터 그래픽에 대한 자세한 설명은 SVG 파일로 변환하기(영어) 문서를 참고해 주세요.
    미디어위키의 SVG 그림 지원 정보(영어)도 같이 참고해주세요.

    다른 언어로
    Alemannisch ∙ العربية ∙ беларуская (тарашкевіца) ∙ български ∙ বাংলা ∙ català ∙ нохчийн ∙ čeština ∙ dansk ∙ Deutsch ∙ Ελληνικά ∙ English ∙ British English ∙ Esperanto ∙ español ∙ eesti ∙ euskara ∙ فارسی ∙ suomi ∙ français ∙ Frysk ∙ galego ∙ Alemannisch ∙ עברית ∙ हिन्दी ∙ hrvatski ∙ magyar ∙ հայերեն ∙ Bahasa Indonesia ∙ Ido ∙ italiano ∙ 日本語 ∙ ქართული ∙ 한국어 ∙ lietuvių ∙ македонски ∙ മലയാളം ∙ Bahasa Melayu ∙ မြန်မာဘာသာ ∙ norsk bokmål ∙ Plattdüütsch ∙ Nederlands ∙ norsk nynorsk ∙ norsk ∙ occitan ∙ polski ∙ prūsiskan ∙ português ∙ português do Brasil ∙ română ∙ русский ∙ sicilianu ∙ Scots ∙ slovenčina ∙ slovenščina ∙ српски / srpski ∙ svenska ∙ தமிழ் ∙ ไทย ∙ Türkçe ∙ татарча / tatarça ∙ українська ∙ vèneto ∙ Tiếng Việt ∙ 中文 ∙ 中文(中国大陆) ∙ 中文(简体) ∙ 中文(繁體) ∙ 中文(马来西亚) ∙ 中文(新加坡) ∙ 中文(臺灣) ∙ +/−
    새 SVG 이름

    PNG 발전
    InfoField
     이 다이어그램 MATLAB(으)로 제작되었습니다.

    라이선스

    Public domain 이 작품은 저작자인 Oleg Alexandrov에 의해 퍼블릭 도메인으로 공개된 작품입니다. 이 공개 선언은 전 세계적으로 유효합니다.
    만약 저작권의 포기가 법률적으로 가능하지 않은 경우,
    Oleg Alexandrov은 이 작품을 법적으로 허용되는 한도 내에서 누구나 자유롭게 어떤 목적으로도 제한 없이 사용할 수 있도록 허용합니다.

    Source code (Matlab)

    function main()
       thickness1=2; thickness2=1; arrowsize=5; arrow_type=2; ball_rad=0.012;
       blue=[0, 0, 1]; fontsize=25; dist=0.005;
       
       a=-1.4; b=-a;
       h=0.01;
       X=a:h:b;
       Y=zeros(length(X), 1);
       for i=1:length(X)
          x=X(i);
          if x < 1 & x > -1
    	 Y(i)=exp(-1/(1-x^2));
          end
       end
    
       
    figure(1);  clf; hold on; axis equal; axis off
    arrow([a 0], [b+0.2, 0], thickness2, arrowsize, pi/8,arrow_type, [0, 0, 0])
    arrow([0 -0.1], [0 2.*max(Y)], thickness2, arrowsize, pi/8,arrow_type, [0, 0, 0])
    plot(X, Y, 'linewidth', thickness1, 'color', [0 0 1]);
    arrow([b+0.1 0], [b+0.2, 0], thickness2, arrowsize, pi/8,arrow_type, [0, 0, 0])
    
    ball(1, 0, ball_rad, blue); ball(-1, 0, ball_rad, blue);
    place_text_smartly(1, fontsize, 6, dist, '1');
    place_text_smartly(-1, fontsize, 6, dist, '-1');
    
    saveas(gcf, 'mollifier_illustration.eps', 'psc2')
    
    function place_text_smartly (z, fs, pos, d, tx)
     p=cos(pi/4)+sqrt(-1)*sin(pi/4);
     z = z + p^pos * d * fs; 
     shiftx=0.0003;
     shifty=0.002;
     x = real (z); y=imag(z); 
     H=text(x+shiftx*fs, y+shifty*fs, tx); set(H, 'fontsize', fs, 'HorizontalAlignment', 'c', 'VerticalAlignment', 'c')
    
    function ball(x, y, r, color)
       Theta=0:0.1:2*pi;
       X=r*cos(Theta)+x;
       Y=r*sin(Theta)+y;
       H=fill(X, Y, color);
       set(H, 'EdgeColor', color);
    
    function arrow(start, stop, thickness, arrowsize, sharpness, arrow_type, color)
    
    %  draw a line with an arrow at the end
    %  start is the x,y point where the line starts
    %  stop is the x,y point where the line stops
    %  thickness is an optional parameter giving the thickness of the lines   
    %  arrowsize is an optional argument that will give the size of the arrow 
    %  It is assumed that the axis limits are already set
    %  0 < sharpness < pi/4 determines how sharp to make the arrow
    %  arrow_type draws the arrow in different styles. Values are 0, 1, 2, 3.
       
    %       8/4/93    Jeffery Faneuff
    %       Copyright (c) 1988-93 by the MathWorks, Inc.
    %       Modified by Oleg Alexandrov 2/16/03
    
       
       if nargin <=6
          color=[0, 0, 0];
       end
       
       if (nargin <=5)
          arrow_type=0;   % the default arrow, it looks like this: ->
       end
       
       if (nargin <=4)
          sharpness=pi/4; % the arrow sharpness - default = pi/4
       end
    
       if nargin<=3
          xl = get(gca,'xlim');
          yl = get(gca,'ylim');
          xd = xl(2)-xl(1);            
          yd = yl(2)-yl(1);            
          arrowsize = (xd + yd) / 2;   % this sets the default arrow size
       end
    
       if (nargin<=2)
          thickness=0.5; % default thickness
       end
       
       
       xdif = stop(1) - start(1);
       ydif = stop(2) - start(2);
    
       if (xdif == 0)
          if (ydif >0) 
    	 theta=pi/2;
          else
    	 theta=-pi/2;
          end
       else
          theta = atan(ydif/xdif);  % the angle has to point according to the slope
       end
    
       if(xdif>=0)
          arrowsize = -arrowsize;
       end
    
       if (arrow_type == 0) % draw the arrow like two sticks originating from its vertex
          xx = [start(1), stop(1),(stop(1)+0.02*arrowsize*cos(theta+sharpness)),NaN,stop(1),...
    	    (stop(1)+0.02*arrowsize*cos(theta-sharpness))];
          yy = [start(2), stop(2), (stop(2)+0.02*arrowsize*sin(theta+sharpness)),NaN,stop(2),...
    	    (stop(2)+0.02*arrowsize*sin(theta-sharpness))];
          plot(xx,yy, 'LineWidth', thickness, 'color', color)
       end
    
       if (arrow_type == 1)  % draw the arrow like an empty triangle
          xx = [stop(1),(stop(1)+0.02*arrowsize*cos(theta+sharpness)), ...
    	    stop(1)+0.02*arrowsize*cos(theta-sharpness)];
          xx=[xx xx(1) xx(2)];
          
          yy = [stop(2),(stop(2)+0.02*arrowsize*sin(theta+sharpness)), ...
    	    stop(2)+0.02*arrowsize*sin(theta-sharpness)];
          yy=[yy yy(1) yy(2)];
    
          plot(xx,yy, 'LineWidth', thickness, 'color', color)
          
    %     plot the arrow stick
          plot([start(1) stop(1)+0.02*arrowsize*cos(theta)*cos(sharpness)], [start(2), stop(2)+ ...
    		    0.02*arrowsize*sin(theta)*cos(sharpness)], 'LineWidth', thickness, 'color', color)
          
       end
       
       if (arrow_type==2) % draw the arrow like a full triangle
          xx = [stop(1),(stop(1)+0.02*arrowsize*cos(theta+sharpness)), ...
    	    stop(1)+0.02*arrowsize*cos(theta-sharpness),stop(1)];
          
          yy = [stop(2),(stop(2)+0.02*arrowsize*sin(theta+sharpness)), ...
    	    stop(2)+0.02*arrowsize*sin(theta-sharpness),stop(2)];
          
    %     plot the arrow stick
          plot([start(1) stop(1)+0.01*arrowsize*cos(theta)], [start(2), stop(2)+ ...
    		    0.01*arrowsize*sin(theta)], 'LineWidth', thickness, 'color', color)
          H=fill(xx, yy, color);% fill with black
          set(H, 'EdgeColor', 'none')
    
       end
    
       if (arrow_type==3) % draw the arrow like a filled 'curvilinear' triangle
          curvature=0.5; % change here to make the curved part more curved (or less curved)
          radius=0.02*arrowsize*max(curvature, tan(sharpness));
          x1=stop(1)+0.02*arrowsize*cos(theta+sharpness);
          y1=stop(2)+0.02*arrowsize*sin(theta+sharpness);
          x2=stop(1)+0.02*arrowsize*cos(theta)*cos(sharpness);
          y2=stop(2)+0.02*arrowsize*sin(theta)*cos(sharpness);
          d1=sqrt((x1-x2)^2+(y1-y2)^2);
          d2=sqrt(radius^2-d1^2);
          d3=sqrt((stop(1)-x2)^2+(stop(2)-y2)^2);
          center(1)=stop(1)+(d2+d3)*cos(theta);
          center(2)=stop(2)+(d2+d3)*sin(theta);
    
          alpha=atan(d1/d2);
          Alpha=-alpha:0.05:alpha;
          xx=center(1)-radius*cos(Alpha+theta);
          yy=center(2)-radius*sin(Alpha+theta);
          xx=[xx stop(1) xx(1)];
          yy=[yy stop(2) yy(1)];
    
    %     plot the arrow stick
          plot([start(1) center(1)-radius*cos(theta)], [start(2), center(2)- ...
    		    radius*sin(theta)], 'LineWidth', thickness, 'color', color);
    
          H=fill(xx, yy, color);% fill with black
          set(H, 'EdgeColor', 'none')
    
       end
    
    date/time username edit summary
    04:29, 23 November 2005 en:User:Oleg Alexandrov (rm space)
    04:27, 23 November 2005 en:User:Mathbot (source code)
    04:21, 23 November 2005 en:User:Oleg Alexandrov

    기존 올리기 기록

    Legend: (cur) = this is the current file, (del) = delete this old version, (rev) = revert to this old version.

    Click on date to download the file or see the image uploaded on that date.

    설명

    이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다

    이 파일에 묘사된 항목

    다음을 묘사함

    파일 역사

    날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

    날짜/시간섬네일크기사용자설명
    현재2006년 3월 19일 (일) 20:392006년 3월 19일 (일) 20:39 판의 섬네일500 × 158 (6 KB)wikimediacommons>MaksimLa bildo estas kopiita de wikipedia:en. La originala priskribo estas: == Licensing == {{PD-self}} ==Source code (Matlab)== <pre><nowiki> function main() thickness1=2; thickness2=1; arrowsize=5; arrow_type=2; ball_rad=0.012; blue=[0, 0, 1]; fo

    이 파일을 사용하는 문서가 없습니다.