File:Syntractrix a=0.5 b=1.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (2,025 × 554 pixels, file size: 21 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents
Description Illustration of Syntractrix
Date (UTC)
Source self-made with en:Matlab
Author Oleg Alexandrov
 
This diagram was created with MATLAB.
Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Source code (MATLAB)

[edit]
 

% Syntractrix 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=5000;  % number of points (don't make it big, code will be slow)

   a = 0.5; b = 1;
   Lx1 = -0.3; Lx2 = 5; Ly1 = -b; Ly2 = b;

   bd = 0.1;
   figure(1); clf; 
   hold on; axis equal; grid on;
   set(gca, 'fontsize', fs, 'linewidth', lw/4);
   
   Y = linspace(eps, Ly2, N);  
   X =  -sqrt(b^2-Y.^2) + a*log((b+sqrt(b^2-Y.^2))./Y);
   X(1) = Lx2;
   
   figure(1); plot(X, Y, 'color', red, 'linewidth', lw/2);
          
   figure(1); axis equal; axis([Lx1-bd Lx2 -bd b+bd]);
   
   saveas(gcf, sprintf('Syntractrix_a=%0.2g_b=%0.2g.eps', a, b), 'psc2')
This math image could be re-created 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 available, please upload it and afterwards replace this template with {{vector version available|new image name}}.


It is recommended to name the SVG file “Syntractrix a=0.5 b=1.svg”—then the template Vector version available (or Vva) does not need the new image name parameter.

File history

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

Date/TimeThumbnailDimensionsUserComment
current03:56, 19 July 2007Thumbnail for version as of 03:56, 19 July 20072,025 × 554 (21 KB)Oleg Alexandrov (talk | contribs){{Information |Description=Illustration of Syntractrix |Source=self-made with en:Matlab |Date=17:24, 14 July 2007 (UTC) |Author= Oleg Alexandrov }} {{PD-self}} ==Source code (MATLAB)== <pre> <nowiki> %

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: