File:Area under rectangular hyperbola.svg

Summary

Description
English: The five coloured regions are of equal area, and define units of hyperbolic angle along the hyperbola xy = 1
Português: As cinco regiões coloridas possuem a mesma área, e definem unidades de ângulo hiperbólico junto com a hipérbole xy = 1
Date
Source

Own work

 This plot was created with Matplotlib.
Category:Valid SVG created with Matplotlib#Area%20under%20rectangular%20hyperbola.svg
Author Vickvvy & Lenin.castilhos

Matplotlib (Python)

# Author: Vickvvy, 2023-12-14

import matplotlib.pyplot as plt
import numpy as np

def f(x):
  return 1/x

x = np.linspace(0.01, 8, 1000)
y = f(x)

fig, ax = plt.subplots(figsize=(6, 6))
ax.plot(x, y)

ax.set_xlim(0, 8)
ax.set_ylim(0, 8)

plt.xticks([1,np.e,np.exp(2)],labels=["1","e","e^2"])
plt.yticks([1,np.e,np.exp(2)],labels=["1","e","e^2"])

plt.fill_between(x, 1, where=(x>=0) & (x<=1),color='blue', alpha=0.2)

plt.fill_between(x, y, where=(x>1) & (x<=np.e),color='red', alpha=0.2)
plt.fill_betweenx(x, y, where=(x>1) & (x<=np.e),color='red', alpha=0.2)

plt.fill_between(x, y, where=(x>np.e) & (x<=np.exp(2)),color='blue', alpha=0.2)
plt.fill_betweenx(x, y, where=(x>np.e) & (x<=np.exp(2)),color='blue', alpha=0.2)

plt.plot(x, y, color="blue")
plt.savefig("xy=1.svg", format='svg')

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International 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.
Category:CC-BY-SA-4.0#Area%20under%20rectangular%20hyperbola.svgCategory:Self-published work
Category:E (mathematical constant) Category:Hyperbolas in Cartesian coordinates
Category:CC-BY-SA-4.0 Category:E (mathematical constant) Category:Hyperbolas in Cartesian coordinates Category:Self-published work Category:Valid SVG created with Matplotlib