BESSELK
Returns the modified Bessel function Kn(x).
Syntax
expression.BESSELK(arg1, arg2);
expression - A variable that represents a ApiWorksheetFunction class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| arg1 | Required | ApiRange | ApiName | number | The value at which to evaluate the function. | |
| arg2 | Required | ApiRange | ApiName | number | The order of the function. |
Returns
number
Example
This example shows how to return the modified Bessel function Kn(x).
- Code
- Result
// How to get a result from Bessel function Kn(x).
// Use function to get the Bessel function Kn(x).
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.BESSELK(1.5, 1));