0

I want to compute the Bessel function of the first kind in MATLAB.

  • J0 = First kind zero order.
  • J1: There is nothing mentioned what is J1 in the article.
  • But wikipidea says: The series indicates that −J1(x) is the derivative of J0(x).
  • What is J1 and how should I compute it in MATLAB?
  • Should r be a constant value or variable?

Let us say I want to compute J0(r) and J1(r)

J0 = besselj(0,r);
J1 = -besselj(1,r);

Is the code for J1 correct?

Cris Luengo
  • 55,762
  • 10
  • 62
  • 120
alluri
  • 55
  • 1
  • 8
  • What you mean by implement? Do you want to code your own `bessel` function or just use MATLAB's built-in `besselj` [function](https://www.mathworks.com/help/matlab/ref/besselj.html#mw_b63c9faa-8dee-4bd8-879a-92a756d6fe1e)? Did you checked the `besselj` documentation? It is clear in the examples what the first and second argument are. – Thales Oct 18 '19 at 14:19

1 Answers1

1

According to the documentation, besselj(α,r) computes Jα(r), the Bessel function of the first kind of order α. So if you want to compute the function for order 1, do

J1 = besselj(1,r);
Bob Gilmore
  • 12,608
  • 13
  • 46
  • 53
Cris Luengo
  • 55,762
  • 10
  • 62
  • 120