File:Double comb.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 600 × 500 pixels, file size: 96 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: The intricated double comb for r=3/4. See : Describing quadratic Cremer point polynomials by parabolic perturbations by DAN ERIK KRARUP SØRENSEN. Ergodic Theory and Dynamical Systems (1998), 18 : pp 739-758. 1998 Cambridge University Press example 2.4
    Source own work with help of experts from Maxima CAS team. Thx
    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
    Maxima CAS code. Gnuplot 4.4 patchlevel 4
    /* Image is made using segments. Segment is a pair of points connected with line ( points_joined = true ). 
    
    Point can be describe by :
    * 2 real numbers, like : [0,1] which means  0 + 1*i 
    * 1 complex numbers, like : i = 0 + 1*i
    
    
       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 
    example 2.4 
    
    */
    
    
    kill(all);
    remvalue(all);
    
    
    /* ------- functions --------------- */
    
    
    GivePoints0(n,r):= points([[1/(2^(2*n)),   1], [1/(2^(2*n))  , 1-r*(1-1/(2^(2*n+1)))]])$
    GivePoints1(n,r):= points([[1/(2^(2*n-1)), 0], [1/(2^(2*n-1)), r*(1-1/(2^(2*n)))]]  )$
    
    compile(all )$
    
    /* ----- constans and variables     --- */
    
    nMax:100;
    r:3/4;
    p:[];   /* list with points object */
    pp:[];  /* list of points objects  */
    
    /* --------- main -------------*/
    
        /* pair or real numbers*/  /* complex points */
    pp:[points([[0,0],[1,0]]),    /* [0,1] */
        points([[0,0],[0,1]] ) ,  /* [0,i] */
        points([[0,1],[1,1]] )]$  /* [i,1+i] */
    
    for n:0 thru nMax step 1 do
    (
     p:GivePoints0(n,r),
     pp:cons(p,pp)
    )$
    
    for n:1 thru nMax step 1 do
    (
     p:GivePoints1(n,r),
     pp:cons(p,pp)
    )$
    
    
    /* ---------- draw image  ----------- */
    load(draw);/* by Mario Rodríguez Riotorto  http://riotorto.users.sourceforge.net/gnuplot/index.html  */
    
    
    draw2d(
     title     = concat("The intricated double comb for r=",string(r)), /*  */
     xrange        = [-0.2,1.2],
     yrange        = [-0.2,1.2],
     file_name = "double_comb",
     terminal      = svg,
     point_type = filled_circle,
     point_size = 0.1,
     points_joined = true, /* draws segments between points  */
     color         = "blue",
     pp )$
    
    Software code
    build_info()$
     (%i1) build_info()$
     Maxima version: 5.22.1
     Maxima build date: 22:10 11/8/2010
     Host type: x86_64-unknown-linux-gnu
     Lisp implementation type: GNU Common Lisp (GCL)
     Lisp implementation version: GCL 2.6.7
    

    History

    Checking the file with SVG validator gives 204 Errors ! It is probably due to gnuplot.

    Current git version of Maxima CAS gives no errors.
    Gnuplot 4.4 patchlevel 4
    Maxima 5.25post, a version somewhere between 5.25 and 5.26.

    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

    97,904 byte

    image/svg+xml

    3a0262853c54204b36df72cdc3b433ad297f7ae6

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current17:25, 9 August 2012Thumbnail for version as of 17:25, 9 August 2012600 × 500 (96 KB)wikimediacommons>Soul windsurferDouble_comb.svg and was generated with current git Maxima by Mario Rodríguez Riotorto http://riotorto.users.sourceforge.net/gnuplot/index.html

    There are no pages that use this file.