Fil:Diffeomorphism of a square.svg

Sidans innehåll stöds inte på andra språk.
Från Wikipedia

Originalfil(SVG-fil, standardstorlek: 560 × 560 pixlar, filstorlek: 39 kbyte)

Beskrivning Illustration of a diffeomorphism.
Datum (UTC)
Källa self-made with MATLAB
Skapare Oleg Alexandrov
Public domain Jag, upphovsrättsinnehavaren till detta verk, släpper detta verk i public domain. Detta gäller globalt.
I vissa länder kan detta inte vara juridiskt möjligt; i så fall:
Jag ger härmed envar rätten att använda detta verk för alla ändamål, utan några villkor, förutom villkor som lagen ställer.

Source code (MATLAB)

% Compute a diffeomorphism from a square to a square which leave
% the boundary fixed.

function main()

   N = 20; % num of grid points
   epsilon = 0.1; % displacement for each small diffeomorphism
   num_comp = 10; % number of times the diffeomorphism is composed with itself
   
   S = linspace(-1, 1, N);

   [X, Y] = meshgrid(S);

   Z = X; W = Y;

   % take num_comp compositions of the same small diffeomorphism
   for iter = 1:num_comp

      for i=1:N
         for j=1:N
            
            [Z(i, j), W(i, j)] = small_diffeo(Z(i, j), W(i, j), epsilon);
            
         end
      end

   end
   
   % graphing settings
   lw = 2;
   mycolor = [1, 0, 0.1];
   small = 0.1;
   
   figure(1); clf; hold on;
   for i=1:N
      plot(X(:, i), Y(:, i), 'linewidth', lw, 'color', mycolor);
      plot(X(i, :), Y(i, :), 'linewidth', lw, 'color', mycolor);
   end
   axis([-1-small, 1+small, -1-small, 1+small]);
   axis equal; axis off;
   
   figure(2); clf; hold on;
   for i=1:N
      plot(Z(:, i), W(:, i), 'linewidth', lw, 'color', mycolor);
      plot(Z(i, :), W(i, :), 'linewidth', lw, 'color', mycolor);
   end
   axis([-1-small, 1+small, -1-small, 1+small]);
   axis equal; axis off;
   
function [z, w] = small_diffeo(x, y, epsilon);

   A1=epsilon*(cos(pi*x)+1)*(cos(pi*y)+1)/4.0;
   A2=epsilon*cos(pi*x/2)*cos(pi*y/2);

   A = (A1+A2)/2;
   
   z = x +(-y)*A;
   w = y +( x)*A;

Bildtexter

Ingen bildtext har definierats

Objekt som porträtteras i den här filen

motiv

Filhistorik

Klicka på ett datum/klockslag för att se filen som den såg ut då.

Datum/TidMiniatyrbildDimensionerAnvändareKommentar
nuvarande16 februari 2009 kl. 12.03Miniatyrbild för versionen från den 16 februari 2009 kl. 12.03560 × 560 (39 kbyte)Erik del Toro Streb''stroke-linecap:round'' for better locking corners
19 januari 2008 kl. 06.25Miniatyrbild för versionen från den 19 januari 2008 kl. 06.25560 × 560 (36 kbyte)Oleg Alexandrovtweak color and thickness
18 januari 2008 kl. 06.25Miniatyrbild för versionen från den 18 januari 2008 kl. 06.25560 × 560 (29 kbyte)Oleg Alexandrov{{Information |Description=Illustration of a diffeomorphism. |Source=self-made with MATLAB |Date=~~~~~ |Author= Oleg Alexandrov |Permission= |other_versions= }} {{PD-self}} ==Source code ([[:en:MATLAB|MATL

Följande sida använder den här filen:

Global filanvändning

Följande andra wikier använder denna fil: