- Processing
- p5.js
- Processing.py
- Processing for Android
- Processing for Pi

- Processing Foundation

This reference is for Processing 3.0+. If you have a previous version, use the reference included with your software in the Help menu. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

Name | ### asin()
Examples |
    float a = PI/3;
    float s = sin(a);
    float as = asin(s);
    // Prints "1.0471976 : 0.86602545 : 1.0471976"
    println(a + " : " + s + " : " +  as);
    float a = PI + PI/3.0;
    float s = sin(a);
    float as = asin(s);
    // Prints "4.1887903 : -0.86602545 : -1.0471976"
    println(a + " : " + s + " : " +  as);
Description | The inverse of sin(), returns the arc sine of a value. This function expects the values in the range of -1 to 1 and values are returned in the range -PI/2 to PI/2.
Syntax |
    asin(value)
Parameters |
value | float: the value whose arc sine is to be returned
Returns | float
Related | sin() acos() atan()

Updated on January 1, 2021 03:38:06am EST
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.