BESSEL.OMS
Script File:
# Description:
# Plots the Jn and Yn Bessel functions for n = 0, 1, and 2.
#
clear
# grid of values between 0 and 10
x = seq(100) / 10.
# title for the plot
gtitle("J and Y Bessel Functions")
# loop over the value of n
for n = 0 to 2 begin
# plot the Jn Bessel function
gplot(x, besselj(n, x))
# plot the Yn Bessel function
gplot(x, bessely(n, x))
end
# scale the y axis
gyaxis("linear", -3, 1, 4, 5)
Output:
|