File:Interior extremum graph.svg

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.

Category:CC-Zero#Interior%20extremum%20graph.svgCategory:Self-published work
Category:SVG created with Matplotlib Category:Theorems in calculus
Category:CC-Zero Category:SVG created with Matplotlib Category:Self-published work Category:Theorems in calculus