asin()

本参考资料用于Processing 3.0+。 如果你使用的是前一版本,请在使用软件帮助菜单内的参考资料。. 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.

名称

asin()

示例
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);

描述 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.
语法
asin(value)
参数
value float: the value whose arc sine is to be returned
返回值 float
相关 sin()
acos()
atan()

Updated on October 2, 2018 05:02:06pm EDT

asin()