Jump to content

File:Cauchy sequence illustration.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia
    Original file (SVG file, nominally 305 × 170 pixels, file size: 50 KB)

    Summary

    Description
    English: Illustration of Cauchy sequence. Created using python with numpy and matplotlib toolkits. Based on the file: Cauchy sequence illustration.png.
    Date
    Source Own work
    Author Krishnavedala
    SVG development
    InfoField
     The SVG code is valid.
     This vector image was created with Python.

    Source code

    from matplotlib.pyplot import *
    from mpl_toolkits.axes_grid.axislines import SubplotZero
    from numpy import arange, sin, exp
    x1 = arange(0.,9.1,.05)
    x2 = arange(0.,9.6,.1)
    z = lambda x: 3.*exp(-.4*x)
    y = lambda x: sin(5.*x) * z(x)
    
    fig = figure(figsize=(4,2))
    ax = SubplotZero(fig,111)
    fig.add_subplot(ax)
    
    ax.axis["top"].set_visible(False)
    ax.axis["right"].set_visible(False)
    ax.axis["left"].set_axisline_style("->")
    ax.axis["bottom"].set_axisline_style("->")
    ax.set_yticks([])
    ax.set_xticks([])
    ax.set_xlim(-1,10)
    ax.set_ylim(-3,3)
    
    ax.plot(x1,y(x1),'bo',ms=2.5)
    ax.plot(x2, z(x2),'r--',lw=1.5)
    ax.plot(x2,-z(x2),'r--',lw=1.5)
    
    ax.text(10,-2.8,u'$n$')
    ax.text(-.75,3,u'$X_n$')
    fig.savefig("Cauchy_sequence_illustration.svg",bbox_inches="tight",pad_inches=.15)
    

    Licensing

    Krishnavedala, the copyright holder of this work, hereby publishes it under the following license:
    Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
    The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

    Captions

    Depiction of a Cauchy sequence made with Python, using the NumPy and Matplotlib libraries.

    Items portrayed in this file

    depicts

    9 September 2011

    image/svg+xml

    cb933a3068372e1cd2c54505c7ab2143412ebaad

    50,731 byte

    170 pixel

    305 pixel

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current04:24, 9 September 2011Thumbnail for version as of 04:24, 9 September 2011305 × 170 (50 KB)Krishnavedala

    Global file usage

    The following other wikis use this file:

    View more global usage of this file.