yn_zeros(n, nt)
Compute nt zeros of the functions Y_n(x) on the interval (0, \infty). The zeros are returned in ascending order.
First nt zeros of the Bessel function.
Compute zeros of integer-order Bessel function Yn(x).
yn
yv
from scipy.special import yn_zeros
yn_zeros(2, 4)
import numpy as np
import matplotlib.pyplot as plt
from scipy.special import yn, yn_zeros
xmin = 2
xmax = 15
x = np.linspace(xmin, xmax, 500)
fig, ax = plt.subplots()
ax.hlines(0, xmin, xmax, color='k')
ax.plot(x, yn(2, x), label=r'$Y_2$')
ax.scatter(yn_zeros(2, 4), np.zeros((4, )), s=30, c='r',
label='Roots', zorder=5)
ax.set_ylim(-0.4, 0.4)
ax.set_xlim(xmin, xmax)
plt.legend()
plt.show()
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them