The Formula of Love - Hibi's Note# The Formula of Love
$y = 1 / x$
$x^{2} + y^{2} = 9$
$y = |-2x|$
$x = -3|\sin y|$
```python
import matplotlib.pyplot as plt
import numpy as np
style = {'color': 'red', 'linewidth': 4}
fig, axs = plt.subplots(2, 2)
plt.subplots_adjust(wspace=0.4, hspace=0.4)
for ax in axs.flat:
ax.set_xticks([])
ax.set_yticks([])
ax.spines['right'].set_visible(False)
ax.spines['top'].set_visible(False)
ax.spines['left'].set_position('zero')
ax.spines['bottom'].set_position('zero')
# $y = 1 / x$
x = np.linspace(0.1, 10, 100)
y = 1 / x
plt.subplot(2, 2, 1)
plt.plot(x, y, **style)
plt.title("$y = 1 / x
quot;)
# $x^{2} + y^{2} = 9$
x = np.linspace(-3, 3, 100)
y = np.sqrt(9 - x**2)
plt.subplot(2, 2, 2)
plt.plot(x, y, **style)
plt.plot(x, -y, **style)
plt.title("$x^{2} + y^{2} = 9quot;)
# $y = |-2x|$
x = np.linspace(-10, 10, 100)
y = np.abs(-2 * x)
plt.subplot(2, 2, 3)
plt.plot(x, y, **style)
plt.title("$y = |-2x|quot;)
# $x = -3|\sin y|$
y = np.linspace(-np.pi, np.pi, 100)
x = -3 * np.abs(np.sin(y))
plt.subplot(2, 2, 4)
plt.plot(x, y, **style)
plt.title("$y = -3|\sin x|quot;)
plt.show()
```
![[the formula of love.png]]