Jump to content

File:Squareroot-0-9-metapost.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Simple English Wikipedia, the free encyclopedia
    Original file (SVG file, nominally 600 × 374 pixels, file size: 18 KB)

    Summary

    Description
    English: Graph of square root function.
    Deutsch: Graph der Quadratwurzel-Funktion.
    Русский: График y=x.
    Date
    Source Own work
    Author Georg-Johann
    SVG development
    InfoField
     The SVG code is valid.
     This vector image was created with MetaPost.
    Source code
    InfoField

    PostScript code

    metapost-source
    % length of marks for axes
    mark=1mm;
    
    % magnitude for picture scaling
    m:=1cm;
    
    % Provide a Background to ensure good Contrast
    fill for p = (-.6,-.6), (10,-.6), (10,6), (-.6,6):
       p*m-- endfor cycle withcolor white;
    
    % y-Axis
    drawarrow (0,-.5m)--(0,6m);
    
    % Marks and Numbers on y-Axis, Grid in x-Direction
    for i=1 upto 5:
       draw (0,i)*m--(10,i)*m withcolor .6white dashed evenly;
       draw (-mark,i*m)--(mark,i*m);
       label.lft(decimal(i), (-mark,i*m));
    endfor;
    
    % x-Axis
    drawarrow (-.5m,0)--(10m,0);
    
    % Marks and Numbers on x-Axis, Grid in y-Direction
    for i=1 upto 9:
       draw (i,0)*m--(i,6)*m withcolor .5white dashed evenly;
       draw (i*m,-mark)--(i*m,mark);
       label.bot(decimal(i), (i*m,-mark));
    endfor;
    
    % Label for x-Axis
    label.top(btex $x$ etex, (9.5m,mark));
    
    % Label for y-Axis
    % We put a white bounding Box under this Label in Case
    % we draw over a Gridline. We do not use 'unfill' because
    % that would kick out  the background
    picture fx; 
    fx = thelabel.rt (btex $f(x)$ etex, (mark,5.5m));
    fill bbox fx withcolor white;
    draw fx;
    
    % Label the Graph
    label.top(btex $\sqrt x$ etex, (9.5,sqrt(9.5))*m);
    
    % That's why we are here: Draw the Squareroot
    linecap:=butt;
    
    draw (
       (0,0){0,1} 
       ..(0.25,0.5)*m{1,1}
       for i=1 upto 3:
          ..(i*i,i)*m{2i,1} 
       endfor 
       ..(10,sqrt(10))*m{2*sqrt(10),1}
    ) withcolor .5red withpen pencircle scaled 1.2;
    

    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

    graphique de la fonction racine carée

    Items portrayed in this file

    depicts

    8 August 2010

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current11:43, 8 August 2010Thumbnail for version as of 11:43, 8 August 2010600 × 374 (18 KB)Georg-JohannChange natural Size to be 600 pix wide
    11:19, 8 August 2010Thumbnail for version as of 11:19, 8 August 2010301 × 187 (18 KB)Georg-Johann{{Information |Description={{en|1=Graphh of square root function generated using metapost. Code see below.}} |Source={{own}} |Author=Georg-Johann |Date=2010-08-08 |Permission= |other_versions= }} Category:SVG x-y functions

    The following page uses this file:

    Global file usage

    The following other wikis use this file: