File:Kampyle Eudoxus.png

頁面內容不支援其他語言。
這個檔案來自維基共享資源
維基百科,自由的百科全書

原始檔案(622 × 1,092 像素,檔案大小:13 KB,MIME 類型:image/png


摘要

描述 Graph of Kampyle of Eudoxus
日期
來源 自己的作品
作者 Donald Hosek
 
本PNG 點陣圖使用MATLAB創作。

授權條款

Public domain 此作品已由其作者,Donald Hosek,釋出至公有領域。此授權條款在全世界均適用。

這可能在某些國家不合法,如果是的話:
Donald Hosek授予任何人有權利使用此作品於任何用途,除受法律約束外,不受任何限制。

Source code (MATLAB)

% Kampyle illustration

function main()

   % linewidth and font size
   lw= 6; 
   fs = 20;

% colors
   red=[0.867 0.06 0.14];
   blue = [0, 129, 205]/256;
   green = [0, 200,  70]/256;
   black = [0, 0, 0];
   white = 0.99*[1, 1, 1];


   N=500;  % number of points (don't make it big, code will be slow)

   Lx1 = -3; Lx2 = 3; Ly1 = -4; Ly2 = -Ly1;

   bd = 0.01;
   for i = 1:10

% Set up the plotting window
	  figure(1); clf; set(gca, 'fontsize', fs, 'linewidth', lw/4);
	  hold on; axis equal; grid on;
	  figure(2); clf; hold on; axis equal; axis off;
	  
	  [X, Y]=meshgrid(linspace(Lx1, Lx2, N), linspace(Ly1, Ly2, N));  
	  
	  x = X; y = Y;
	  a = 1;
	  Z = x.^4-(x.^2+y.^2);
	  
%  graph the curves using 'contour' in figure (2)
	  figure(2); [c, stuff] = contour(X, Y, Z, [0, 0]);
	  
%  extract the curves from c and graph them in figure(1) using 'plot'
%  need to do this kind of convoluted work since plot2svg can't save
%  the result of 'contour' but can save the result of 'plot'   

	  
	  [m, n] = size(c);
	  while n > 0
		 
		 l=c(2, 1);
		 x=c(1,2:(l+1));  y=c(2,2:(l+1)); % get x and y of contours
		 figure(1); plot(x, y, 'color', red, 'linewidth', lw/2);
		 
		 c = c(:, (l+2):n);
		 [m, n] = size(c);

		 Lx1 = min(Lx1, min(x) - bd); Lx2 = max(Lx2, max(x) + bd);
		 Ly1 = min(Ly1, min(y) - bd); Ly2 = max(Ly2, max(y) + bd);
	  end
	  
	  figure(1); axis equal; axis ([Lx1, Lx2, Ly1, Ly2]);
   end

   axis([-2.2 2.2 -4, 4]);
   saveas(gcf, 'Kampyle.eps', 'psc2')

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2017年4月19日 (三) 05:46於 2017年4月19日 (三) 05:46 版本的縮圖622 × 1,092(13 KB)Ayane m61% file size reduction
2007年7月14日 (六) 05:21於 2007年7月14日 (六) 05:21 版本的縮圖622 × 1,092(34 KB)Oleg Alexandrovtweak, same license
2007年6月15日 (五) 00:34於 2007年6月15日 (五) 00:34 版本的縮圖1,305 × 913(53 KB)Donald Hosek{{Information |Description=Graph of Kampyle of Eudoxus |Source=self-made |Date=14 June 2007 |Author= Donald Hosek }}

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案: