Curriculum
Course: Java Basic
Login

Curriculum

Java Basic

Java Home

0/1

Java Introduction

0/1

Java Get Started

0/1

Java Syntax

0/1

Java Comments

0/1

Java Type Casting

0/1

Java Operators

0/1

Java Booleans

0/1

Java Switch

0/1

Java Break / Continue

0/1

Java Errors and Exception

0/1
Text lesson

asin()

Example

Provide the arcsine of various numerical values.

System.out.println(Math.asin(0.64));
System.out.println(Math.asin(-0.4));
System.out.println(Math.asin(0));
System.out.println(Math.asin(1));
ystem.out.println(Math.asin(-1));
System.out.println(Math.asin(2));

Definition and Usage

The asin() function yields the arcsine of a given number, expressed in radians.

Tip: For instance, asin(1) equals π/2.

Syntax

public static double asin(double number)

Parameter Values

Parameter

Description

number

The input should be a number within the range of -1 to 1 to compute its arcsine.

If the value falls outside this range, the function returns NaN (Not a Number).

Technical Details

Returns

It returns a double value representing the arcsine of a given number, measured in radians.

Java Version

Any