Exp_series.gif(292 × 392像素,文件大小:51 KB,MIME类型:image/gif、​循环、​9帧、​9.0秒)


描述
English: Illustration of the en:Exponential function
العربية: الرسم البياني للدالة الأسية
日期 Oleg Alexandrov 03:11, 30 August 2007 (UTC)
来源 self-made with MATLAB.
作者 Oleg Alexandrov
 
本GIF 位图使用MATLAB创作.
Public domain 我,本作品著作权人,释出本作品至公有领域。这适用于全世界。
在一些国家这可能不合法;如果是这样的话,那么:
我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。

MATLAB source code

% The exponential function as the sum of its Taylor series

function main()

   % KSmrq's colors
   red    = [0.867 0.06 0.14];
   blue   = [0, 129, 205]/256;
   green  = [0, 200,  70]/256;
   yellow = [254, 194,   0]/256;
   white = 0.99*[1, 1, 3];

% Set up the grid and other parameters
   N = 100;
   A = -3; B = 3; 
   X = linspace(A, B, N);
   Y = exp(X);
   D = max(Y); C = -0.2*D;
   

% plot the frames

   Sum = 0*X; Term = 0*X+1;
   num_frames = 8;
   for j=0:num_frames

      Sum = Sum+Term;
      Term = Term.*X/(j+1);

      % Set up the figure
      lw = 3; % linewidth
      fs = 20; % font size
      figure(1); clf; set(gca, 'fontsize', fs);
      hold on; grid on;
      set(gca, 'DataAspectRatio', [1 3 1]); % aspect ratio
      
      plot_axes (A, B, C, D, lw/1.3);

      plot(X, Sum, 'color', blue, 'linewidth', lw);
      plot(X, Y,   'color', red, 'linewidth', lw);

      axis([A, B, C, D]);
      
      text_str = sprintf('{\\it n}=%d', j)
      H= text (1.2, 18, text_str, 'fontsize', floor(1.2*fs))

      frame=sprintf('Frame%d.eps', 1000+j);
      disp(frame)
      saveas(gcf, frame, 'psc2');
         
   end

% Convert to animation with the command
% convert -antialias -loop 10000  -delay 100 -compress LZW Frame100* Exp_series.gif
   
   
function plot_axes (A, B, C, D, lw)
   
   black = [0, 0, 0];

   plot([A B], [0, 0], 'linewidth', lw, 'color', black);
   plot([0, 0], [C, D], 'linewidth', lw, 'color', black);

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2007年8月30日 (四) 03:212007年8月30日 (四) 03:21版本的缩略图292 × 392(51 KB)Oleg Alexandrovtweak
2007年8月30日 (四) 03:202007年8月30日 (四) 03:20版本的缩略图291 × 391(50 KB)Oleg Alexandrovtweak
2007年8月30日 (四) 03:112007年8月30日 (四) 03:11版本的缩略图289 × 386(49 KB)Oleg Alexandrov{{Information |Description=Illustration of the en:Exponential function |Source=self-made with MATLAB. |Date=~~~~ |Author= Oleg Alexandrov }} Category:Calculus Category:Files by User:Oleg Alexandrov from en.wikipedia

以下2个页面使用本文件:

全域文件用途

以下其他wiki使用此文件:

查看本文件的更多全域用途