跳到主要内容

ASIN

Returns the arcsine of a number in radians, in the range from <em>-Pi/2</em> to <em>Pi/2</em>.

Syntax

expression.ASIN(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe angle sine. It must be from -1 to 1.

Returns

number

Example

This example shows how to return the arcsine of a number in radians, in the range from Pi/2 to Pi/2.

// How to get an arcsine of a number in radians.

// Use function to get an arcsine of a number and display it in the worksheet.

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.ASIN(0.25));