Languages
[Edit]
EN

JavaScript - Math.asin() method example

13 points
Created by:
Root-ssh
178170

The Math.asin function returns number in radians in the range -Math.PI/2 to +Math.PI/2. The function calculates inverted sine function value.


1. Documentation

Edit
SyntaxMath.asin(number)
Parameters

number - integer or float number value that represents result of operation adjacent / hypotenuse on right triangle (primitive value).

number should be in the range -1 to +1.

Result

number value in radians in the range -Math.PI/2 to +Math.PI/2 (primitive value).

If value can not be calculated NaN is returned.

Description

asin is a static method that takes only one parameter and returns an approximation of the result of the mathematical function arcsine(x).


2. Working with degrees

Edit

3. Canvas plot example

Edit

References

Edit
  1. Inverse trigonometric functions - Wikipedia

Alternative titles

  1. JavaScript - Math.asin() documentation with examples
  2. js - Math.asin() method documentation with examples
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

JavaScript - Math documentation (EN)

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join