23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

esselj, bessely<br />

2-142<br />

and the other is a column vector, the result is a two-dimensional table of<br />

function values.<br />

Y = bessely(nu,Z) computes Bessel functions of the second kind, Y ν( z)<br />

, for<br />

real, nonnegative order nu and argument Z.<br />

J = besselj(nu,Z,1) computes besselj(nu,Z).*exp(-abs(imag(Z))).<br />

Y = bessely(nu,Z,1) computes bessely(nu,Z).*exp(-abs(imag(Z))).<br />

[J,ierr] = besselj(nu,Z) and [Y,ierr] = bessely(nu,Z) also return an<br />

array of error flags:<br />

ierr = 1 Illegal arguments.<br />

ierr = 2 Overflow. Return Inf.<br />

Remarks The Bessel functions are related to the Hankel functions, also called Bessel<br />

functions of the third kind,<br />

where Jν( z)<br />

is besselj, and Y ν( z)<br />

is bessely. The Hankel functions also form<br />

a fundamental set of solutions to Bessel’s equation (see besselh).<br />

Examples format long<br />

z = (0:0.2:1)';<br />

ierr = 3 Some loss of accuracy in argument reduction.<br />

ierr = 4 Unacceptable loss of accuracy, Z or nu too large.<br />

ierr = 5 No convergence. Return NaN.<br />

( 1)<br />

Hν ( z)<br />

= Jν( z)<br />

+ i Yν( z)<br />

( 2)<br />

Hν ( z)<br />

= Jν( z)<br />

– i Yν( z)<br />

besselj(1,z)<br />

ans =<br />

0<br />

0.09950083263924

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!