Skip to main content

BESSELJ

Returns the Bessel function Jn(x).

Syntax

expression.BESSELJ(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe value at which to evaluate the function.
arg2RequiredApiRange | ApiName | numberThe order of the Bessel function.

Returns

number

Example

Compute the Bessel function of the first kind for a given value and order in a spreadsheet.

// Evaluate the Bessel function J at a specific order in a spreadsheet.

// Calculate an oscillatory Bessel value commonly used in signal and vibration analysis in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.BESSELJ(1.9, 2));