File:Syntractrix a=1.5 b=1.png

From formulasearchengine
Jump to navigation Jump to search
    Original file (2,025 × 554 pixels, file size: 25 KB, MIME type: image/png)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Illustration of Syntractrix
    Date
    Source Own work
    Author Oleg Alexandrov
    PNG development
    InfoField
     This diagram was created with MATLAB.

    Licensing

    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)

     
    
    % 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 = 1.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 a SVG file. This has several advantages; see Commons:Media for cleanup for more information. If a 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=1.5 b=1.svg”—then the template Vector version available (or Vva) does not need the new image name parameter.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    14 July 2007

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current05:58, 19 July 2007Thumbnail for version as of 05:58, 19 July 20072,025 × 554 (25 KB)wikimediacommons>Oleg Alexandrov{{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.