From 12:00 PM  4:00 PM CST on Thursday, October 18, ni.com will be undergoing system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 12:00 PM  4:00 PM CST on Thursday, October 18, ni.com will be undergoing system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Download Help (Windows Only) 
Owning Class: advanced
Requires: MathScript RT Module
kv = bessel_k(v, x)
kv = bessel_k(v, x, 1)
[kv, error] = bessel_k(v, x)
[kv, error] = bessel_k(v, x, 1)
Legacy Name: besselk
Computes the modified Bessel function of the second kind of a given order.
Name  Description 

v  Specifies the order of the Bessel function. v is a real, doubleprecision, floatingpoint, positive scalar, vector, or matrix. 
x  Specifies the value for which you want to compute the Bessel function. x is a real or complex, doubleprecision, floatingpoint scalar, vector, or matrix. 
1  Scales the computation. bessel_k(v, x, 1) scales bessel_k(v, x) by exp(x). 
Name  Description  

kv  Returns the modified Bessel function of the second kind. kv is a real or complex, doubleprecision, floatingpoint scalar, vector, or matrix.  
error  Returns error information about the evaluation of the Bessel function. error is a matrix of integers in which each element can return the following values.

bessel_k(v, x) solves the following equation: x^{2}*w''+x*w'(x^{2}+v^{2})*w = 0.
The following equation is a wellknown representation for bessel_k(v, x): bessel_k(v, x) = (pi/2)*(bessel_i(v, x)bessel_i(v, x))/sin(v*pi).
The following table lists the support characteristics of this function.
Supported in the LabVIEW RunTime Engine  Yes 
Supported on RT targets  Yes 
Suitable for bounded execution times on RT  Not characterized 
X = [0:0.01:2];
KV = bessel_k(2, X);
plot(X, KV)
Helpful
Not Helpful