파일:Non-analytic smooth function.png

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

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

    설명 Illustration of an non-analytic smooth function
    날짜 (UTC)
    출처 self-made with MATLAB
    저자 Oleg Alexandrov
    다른 버전

    Image:An infinitely differentiable function which is not analytic illustration.png

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

    Source code (MATLAB)

    % Illustration of an [[:en:Non-analytic smooth function|non-analytic smooth function]]
    function main()
    
       thickness1=2.5; thickness2=1.5; arrowsize=0.15; arrow_type=1; ball_rad=0.03; arrow_angle=35;
       blue = [0, 129, 205]/256; black=[0 0 0]; fontsize=floor(20); dist=0.01;
       
       a=-1; b=5;
       h=0.01;
       X=a:h:b;
       Y=zeros(length(X), 1);
       for i=1:length(X)
          x=X(i);
          if x <= 0
    	 Y(i)=0;
          else 
             Y(i)=exp(-1/x);
          end
       end
    
       
       figure(1);  clf; hold on; axis equal; axis off
    
       arrow([a 0], [b+0.2, 0], thickness2, arrowsize, arrow_angle, arrow_type, [0, 0, 0])
       arrow([0 -0.3], [0 2.*max(Y)], thickness2, arrowsize, arrow_angle, arrow_type, [0, 0, 0])
       plot(X, Y, 'linewidth', thickness1, 'color', blue);
       plot(X, 0*Y+1, 'linewidth', thickness2/1.5, 'color', black, 'linestyle', '--');
       arrow([b+0.1 0], [b+0.2, 0], thickness2, arrowsize, arrow_angle, arrow_type, [0, 0, 0])
       
       ball(0, 0, ball_rad, blue); place_text_smartly(0, fontsize, 5, dist, '0');
       ball(0, 1, ball_rad, black); place_text_smartly(sqrt(-1), fontsize, 5, dist, '1');
    
    saveas(gcf, 'Non-analytic_smooth_function.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, arrow_size, sharpness, arrow_type, color)
       
    % Function arguments:
    % start, stop:  start and end coordinates of arrow, vectors of size 2
    % thickness:    thickness of arrow stick
    % arrow_size:   the size of the two sides of the angle in this picture ->
    % sharpness:    angle between the arrow stick and arrow side, in degrees
    % arrow_type:   1 for filled arrow, otherwise the arrow will be just two segments
    % color:        arrow color, a vector of length three with values in [0, 1]
       
    % convert to complex numbers
       i=sqrt(-1);
       start=start(1)+i*start(2); stop=stop(1)+i*stop(2);
       rotate_angle=exp(i*pi*sharpness/180);
    
    % points making up the arrow tip (besides the "stop" point)
       point1 = stop - (arrow_size*rotate_angle)*(stop-start)/abs(stop-start);
       point2 = stop - (arrow_size/rotate_angle)*(stop-start)/abs(stop-start);
    
       if arrow_type==1 % filled arrow
    
          % plot the stick, but not till the end, looks bad
          t=0.5*arrow_size*cos(pi*sharpness/180)/abs(stop-start); stop1=t*start+(1-t)*stop;
          plot(real([start, stop1]), imag([start, stop1]), 'LineWidth', thickness, 'Color', color);
    
          % fill the arrow
          H=fill(real([stop, point1, point2]), imag([stop, point1, point2]), color);
          set(H, 'EdgeColor', 'none')
          
       else % two-segment arrow
          plot(real([start, stop]), imag([start, stop]),   'LineWidth', thickness, 'Color', color); 
          plot(real([stop, point1]), imag([stop, point1]), 'LineWidth', thickness, 'Color', color);
          plot(real([stop, point2]), imag([stop, point2]), 'LineWidth', thickness, 'Color', color);
       end
    
    이 그림 파일은 벡터 SVG 형식으로 다시 만들어야 합니다. SVG의 장점에 대해서는 여기(영어)를 참고해 주십시오. 만약 이 그림의 SVG 버전이 이미 존재한다면 이 틀을 {{vector version available|새 파일 이름}}으로 대체해 주십시오.
    이 그림 파일은 벡터 SVG 형식으로 다시 만들어야 합니다. SVG의 장점에 대해서는 여기(영어)를 참고해 주십시오. 만약 이 그림의 SVG 버전이 이미 존재한다면 이 틀을 {{vector version available|새 파일 이름}}으로 대체해 주십시오.

    설명

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

    이 파일에 묘사된 항목

    다음을 묘사함

    파일 역사

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

    날짜/시간섬네일크기사용자설명
    현재2007년 12월 3일 (월) 02:022007년 12월 3일 (월) 02:02 판의 섬네일376 × 124 (5 KB)wikimediacommons>Oleg AlexandrovTweak

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