Image:Complex numbers conjugation.png

From Wikipedia, the free encyclopedia

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

La bildo estas kopiita de wikipedia:en. La originala priskribo estas:

Contents

Summary

Made by myself with matlab.

This math image should be recreated using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is already available, please upload it. After uploading an SVG, replace this template with {{ vector version available|new image name.svg}}.

العربية | Български | Català | Česky | Dansk | Deutsch | English | Esperanto | Español | Français | Galego | 한국어 | Italiano | Magyar | Lietuvių | Nederlands | 日本語 | Polski | Português | Română | Русский | Suomi | Svenska | Türkçe | Українська | ‪中文(繁體)‬ | ‪中文(简体)‬ | +/-

Licensing

Public domain This image has been (or is hereby) released into the public domain by its author, Oleg Alexandrov at the English Wikipedia project. This applies worldwide.

In case this is not legally possible:
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

function main ()

% set up the plotting window
thickness=2.8; fs=30; d=0.005;
red=[1, 0, 0]; green=[0, 1, 0]; blue=[0, 0, 1];
figure(1); clf; hold on; axis equal; axis off; 
i=sqrt(-1);

z1=0; z2=1; z3=2+i;
plot_seg(z1, z2, red, thickness); 
plot_seg(z2, z3, green, thickness);
plot_seg(z3, z1, blue, thickness);

pt (z1, fs, 4, d, '0'); 
pt (z2, fs, 0, d, '1');
pt (z3, fs, 1, d, 'A');

z1=0; z2=1; z3=2-i;
plot_seg(z1, z2, red, thickness);
plot_seg(z2, z3, green, thickness);
plot_seg(z3, z1, blue, thickness);

pt (z3, fs, 7, d, 'X');

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

% convert from eps to png with the shell command
% convert -antialias -density 400 -scale 20% Complex_numbers_conjugation.eps Complex_numbers_conjugation.png


function plot_seg(z1, z2, color, thickness);
  plot( [real(z1), real(z2)], [imag(z1), imag(z2)], 'color', colour, 'linewidth', thickness );

function pt (z, fs, pos, d, tx)
 p=cos(pi/4)+sqrt(-1)*sin(pi/4);
 z = z + p^pos * d * fs; 
 shiftx=0.0003;
 shifty=0.002;
 x = real (z); y=imag(z); 
 H=text(x+shiftx*fs, y+shifty*fs, tx); set(H, 'fontsize', fs, 'HorizontalAlignment', 'c', 'VerticalAlignment', 'c')
date/time username edit summary
04:59, 24 October 2005 en:User:Oleg Alexandrov (fix bug)
04:58, 24 October 2005 en:User:Oleg Alexandrov (source code)
03:45, 24 October 2005 en:User:Oleg Alexandrov (Made by myself with matlab.)

Historio de la dosiero

Legend: (cur) = this is the current file, (del) = delete this old version, (rev) = revert to this old version.

Click on date to download the file or see the image uploaded on that date.

  • (del) (cur) 03:45, 24 October 2005 . . en:User:Oleg_Alexandrov Oleg Alexandrov ( en:User_talk:Oleg_Alexandrov Talk) . . 236x238 (4756 bytes) (Made by myself with matlab. )

File history

Click on a date/time to view the file as it appeared at that time.

Date/Time Dimensions User Comment
current 18:34, 26 March 2006 236×238 (5 KB) Maksim (La bildo estas kopiita de wikipedia:en. La originala priskribo estas: == Summary == Made by myself with matlab. == Licensing == {{PD-self}} ==Source code== <pre><nowiki> function main () % set up the plotting window thickness=2.8; fs=30; d=0.005; red)
The following pages on Schools Wikipedia link to this image (list may be incomplete):
This Wikipedia Selection was sponsored by a UK Children's Charity, SOS Children UK , and consists of a hand selection from the English Wikipedia articles with only minor deletions (see www.wikipedia.org for details of authors and sources). See also our Disclaimer.