File:Interior extremum graph.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 223 × 222 pixels, file size: 9 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: A visual demonstration of the interior extremum theorem
    Date
    Source Own work
    Author Based5290

    Source code

    import matplotlib.pyplot as plt
    import numpy as np
    import math
    
    plt.rcParams['figure.figsize'] = (3,3)
    
    LEFT = -math.pi
    RIGHT = math.pi
    def f(x):
        return np.sin(x)
    x_data = np.linspace(LEFT, RIGHT, 100)
    plt.plot(x_data, f(x_data))
    plt.plot(x_data, np.full(100, -1), linestyle='dashed')
    plt.plot(-math.pi / 2, -1, 'ro', color='orange')
    plt.plot(x_data, np.full(100, 1), linestyle='dashed')
    plt.plot(math.pi / 2, 1, 'ro', color='green')
    plt.axis('off')
    plt.savefig('interior_extremum_graph.svg', bbox_inches='tight', pad_inches=0)
    plt.show()
    

    Licensing

    I, the copyright holder of this work, hereby publish 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

    A visual demonstration of the interior extremum theorem

    Items portrayed in this file

    depicts

    14 February 2025

    image/svg+xml

    9,590 byte

    3d56270e25e9efdaec30bfb4e36d848266725f6f

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current10:14, 24 February 2025Thumbnail for version as of 10:14, 24 February 2025223 × 222 (9 KB)wikimediacommons>Based5290with points at tangent points because it looks nicer

    There are no pages that use this file.