File:Comb.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 640 × 480 pixels, file size: 30 KB)

    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: Topologist's comb
    Polski: Grzebień topologiczny
    Date
    Source Own work
    Author Adam majewski
    SVG development
    InfoField
     The SVG code is valid.
     This chart was created with gnuplot.
     This chart uses translateable embedded text.
    Source code
    InfoField
    Gnuplot code
    load(draw); /* by Mario Rodríguez Riotorto  http://riotorto.users.sourceforge.net/gnuplot/index.html  */
    
    draw2d(
     title     = "Topologist\\47s comb", /* Syntax for postscript enhanced option; character 47 = '  */
     xrange        = [0.0,1.2],
     yrange        = [0,1.2],
     file_name = "comb2",
     terminal      = svg,
     points_joined = impulses, /* vertical segments are drawn from points to the x-axis  */
     color         = "blue",
     points(makelist(1/x,x,1,1000),makelist(1,y,1,1000)) )$
    
    Data
    Here is code using different technique ( points) and definition ( not 1/n but 1/(2^n) ):
    /* 
       Ergodic Theory and Dynamical Systems (1998), 18 : pp 739-758
        1998 Cambridge University Press
        Describing quadratic Cremer point polynomials by parabolic perturbations
       DAN ERIK KRARUP SØRENSEN 
    
      Maxima CAS code 
    
    */
    
    
    kill(all);
    remvalue(all);
    
    /* ------- functions --------------- */
    
    GivePoints(i):= points([[1/(2^i) ,0],[1/(2^i),1]])$
    
    compile(all);
    
    /* ----- constans and variables     --- */
    
    iMax:100;
    p:[];   /* list with points object */
    pp:[]; /* list of points objects  */
    
    /* --------- main -------------*/
    
    pp:[points([[0,0],[1,0]]), points([[0,0],[0,1]] )]$
    
    for i:0 thru iMax step 1 do
    (
     p:GivePoints(i),
     pp:cons(p,pp)
    )$
    
    /* ---------- draw image  ----------- */
    load(draw);
    
    draw2d(
     title     = "Topologist\\47s comb", /* Syntax for postscript enhanced option */
     xrange        = [-0.2,1.2],
     yrange        = [-0.2,1.2],
     file_name = "comb_p",
     terminal      = screen,
     point_type = filled_circle,
     point_size = 0.5,
     points_joined = true, /* draws segments between points  */
     color         = "blue",
     pp )$
    

    Licensing

    I, the copyright holder of this work, hereby publish it under the following licenses:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
    GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
    You may select the license of your choice.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    4 August 2012

    image/svg+xml

    8cc0de179c0aa9f9992c328de04639e9df8960d8

    30,949 byte

    480 pixel

    640 pixel

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current20:19, 4 August 2012Thumbnail for version as of 20:19, 4 August 2012640 × 480 (30 KB)wikimediacommons>Soul windsurferValid svg code after manual changes.

    There are no pages that use this file.