Anar al contingut

Archiu:Random walk in2D closeup.png

De L'Enciclopèdia, la wikipedia en valencià
Resolució completa. ((842 × 989 pixels, tamany de l'archiu: 29 kB, MIME tipo: image/png))

Est archiu és de Wikimedia Commons i pot usar-se en atres proyectes. La descripció en la seua pàgina de descripció de l'archiu es mostra més avall.

Summary

Description
English: File:Random walk in 2D closeup
Date
Source Own work
Author Oleg Alexandrov
Other versions
File:random walk 2500.svg is a vector version of this file. It should be used in place of this PNG file when not inferior.

File:Random walk in2D closeup.png → File:random walk 2500.svg

For more information, see Help:SVG.

In other languages
Alemannisch  العربية  беларуская (тарашкевіца)  български  বাংলা  català  нохчийн  čeština  dansk  Deutsch  Ελληνικά  English  British English  Esperanto  español  eesti  euskara  فارسی  suomi  français  Frysk  galego  Alemannisch  עברית  हिन्दी  hrvatski  magyar  հայերեն  Bahasa Indonesia  Ido  italiano  日本語  ქართული  한국어  lietuvių  македонски  മലയാളം  Bahasa Melayu  မြန်မာဘာသာ  norsk bokmål  Plattdüütsch  Nederlands  norsk nynorsk  norsk  occitan  polski  prūsiskan  português  português do Brasil  română  русский  sicilianu  Scots  slovenčina  slovenščina  српски / srpski  svenska  தமிழ்  ไทย  Türkçe  татарча / tatarça  українська  vèneto  Tiếng Việt  中文  中文(中国大陆)  中文(简体)  中文(繁體)  中文(马来西亚)  中文(新加坡)  中文(臺灣)  +/−
New SVG image

PNG development
InfoField
 This diagram was created with MATLAB.

Licensing

Public domain This work has been released into the public domain by its author, Oleg Alexandrov. This applies worldwide.
In some countries this may not be legally possible; if so:
Oleg Alexandrov grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Source code (MATLAB)

Note. One may need to modify the step size, the number of steps, and rerun the code to get a picture similar to the above.

 

function main()

   lw = 1;   % line width
   dx=0.05;  % step size
   L=1;      % window size
   N = 5000; % number of steps
   
   ii=sqrt(-1);
   
   AP =(1+ii)*ones(1, N);

   % do the random walk with N steps. Save the results in AP
   P=0;
   for i=1:N
      AP(i)=P;
      dP = (1+ii)*dx*(hrand+ii*hrand)/2;
      P = P+dP;
   end

   figure(2); clf; hold on; axis equal; axis off; 
   plot(real(AP), imag(AP),  'color', 'r', 'linewidth', lw);

   saveas(gcf, 'random_walk_in2D_closeup.eps', 'psc2')

  % chose randomly a number from the set {-1, 1}
function z=hrand

   z=0;
   while z==0
      z=rand(1)-0.5;
      z = sign(z);
   end

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts English

data size English

29,691 byte

height English

989 pixel

width English

842 pixel

media type English

image/png

checksum English

c7818d87be48fa2c2762dbe1fa07ca53f3bc6e0b

Historial de l'image

Puncha en la data/hora per a vore l'image tal i com es mostrava en eixe moment.

Data/HoraMiniaturaDimensionsUsuariDescripció
actual03:39 18 abr 2007Miniatura de la versió de 03:39 18 abr 2007842 × 989 (29 kB)wikimediacommons>Oleg AlexandrovMade by myself with MATLAB. {{PD-self}} ==Source code== '''Note.''' One may need to modify the step size, the number of steps, and rerun the code to get a picture similar to the above. <pre> <nowiki> function main() lw = 1; % line width dx=0.0

Les següents pàgines enllacen ad esta image: