Please write the software code in Python 3, how to calculate the Bessel function of order 0 using the procedure presented in Algorithm 1 (Image).
Thank you!
Algorithm 1: Recurrence Relation Algorithm for the Bessel function
1: Input: N and x
2: Set J(N+1) = 0 and J(N) = 1
3: for i = N,...,1 do
4: J(n-1)x = 2nJ(nx) - J(n+1)x
5: end for
6: Calculate X = Jo(x) + 2J2(x) +..+ 2J2N/2(x)
7: Output Jo/X