Naar inhoud springen

Bestand:Triple torus array.png

Pagina-inhoud wordt niet ondersteund in andere talen.
Uit Wikivoyage

Oorspronkelijk bestand(1.123 × 990 pixels, bestandsgrootte: 250 kB, MIME-type: image/png)

Beschrijving Illustration of a triple torus
Datum Oleg Alexandrov (talk) 23:48, 12 July 2008 (UTC)
Bron Eigen werk
 
Dit diagram is gemaakt met MATLAB.
Auteur Oleg Alexandrov
Public domain Ik, de auteursrechthebbende van dit werk, geef dit werk vrij in het publieke domein. Dit is wereldwijd van toepassing.
In sommige landen is dit wettelijk niet mogelijk; in die gevallen geldt:
Ik sta iedereen toe dit werk voor eender welk doel te gebruiken, zonder enige voorwaarden, tenzij zulke voorwaarden door de wet worden voorgeschreven.

Source code (MATLAB)

% illustration of a triple torus, obtained as an isosurface
function main()

   % big and small radii of the torus
   R = 3; r = 1; 

   % c controls the transition from one ring to the other
   c = 1.3*pi/2;
   
   Kb = R+r;
  
   h = 0.1; % h is the grid size. Smaller h means prettier picture.
   
   X = (-Kb-h):h:(5*Kb+h); m = length(X);
   Y = (-Kb-h):h:(Kb+h);   n = length(Y);
   Z = (-r-h):h:(r+h);     k = length(Z);
 
   W = zeros(m, n, k); % the zero level set of this function will be the desired shape
 
   for i=1:m
      for j=1:n
         x = X(i); x = my_map(x, Kb, c);   % map from two torii to one torus
         y = Y(j); 
         W(i, j, :) = (sqrt(x^2+y^2)-R)^2 + Z.^2-r^2; % torus eqn, vectorize in Z
      end
   end

   figure(4); clf; hold on; axis equal; axis off;

   H = patch(isosurface(W, 0));
   isonormals(W, H);
      
   light_green=[184, 224, 98]/256;

   % set some propeties
   set(H, 'FaceColor', light_green, 'EdgeColor','none', 'FaceAlpha', 1);
   set(H, 'SpecularColorReflectance', 0.1, 'DiffuseStrength', 0.8);
   set(H, 'FaceLighting', 'phong', 'AmbientStrength', 0.3);
   set(H, 'SpecularExponent', 108);

   daspect([1 1 1]);
   axis tight;
   colormap(prism(28))
      
% viewing angle
   view(-146, 42);

% add in a source of light
   camlight (-50, 54); lighting phong;

% save as png
  print('-dpng', '-r500', sprintf('Triple_torus_illustration.png'));
   
% This function constructs the second and third rings in the triple torus
% by mapping from the first one.
function y=my_map(x, K, c)

   if x > 2*K
      y = -my_map(4*K - x, K, c);
   else

      if x > K
         x = 2*K - x;
      end
      
      if x < K-c
         y = x;
      else
         y = (K-c) + sin((x - (K-c))*(pi/2/c));
      end
      
   end
Deze wiskundige afbeelding zou opnieuw moeten worden aangemaakt als een SVG-bestand door vectorafbeeldingen te gebruiken. Dit heeft een aantal voordelen; zie Commons:Media for cleanup voor meer informatie. Als er een SVG-formaat van deze afbeelding bestaat, dan deze graag uploaden. Nadat u dit heeft gedaan, gelieve dit sjabloon te vervangen door het sjabloon {{vector version available|nieuwe bestandsnaam.svg}} op deze afbeeldingspagina.

Bijschriften

Beschrijf in één regel wat dit bestand voorstelt

Items getoond in dit bestand

beeldt af

Bestandsgeschiedenis

Klik op een datum/tijd om het bestand te zien zoals het destijds was.

Datum/tijdMiniatuurAfmetingenGebruikerOpmerking
huidige versie13 jul 2008 01:47Miniatuurafbeelding voor de versie van 13 jul 2008 01:471.123 × 990 (250 kB)Oleg Alexandrov{{Information |Description={{en|1=x}} |Source=Own work by uploader |Author=Oleg Alexandrov |Date=x |Permission=x |other_versions=x }} x {{ImageUpload|full}} Category:x

Geen enkele pagina gebruikt dit bestand.

Globaal bestandsgebruik

De volgende andere wiki's gebruiken dit bestand: