This arithmetic predicate calculates the arc sinus of the argument. This predicate is not in the ISO Prolog standard.
see also: acos/1 atan/1 arithmetic in Prolog cos/1 cosh/1 is/2 sin/1 tan/1 tanh/1
| Examples | |
| X is asin(1.1). | a domain_error(value, asin(1.1)) exception is thrown |
| X is asin(-0.1). | succeeds, X is -0.1001674 |
| Exceptions | |
| Number is smaller than -1.0 or larger than +1.0 | a domain_error(value, A) exception is thrown, A is replaced by the expression that causes the overflow, for example: asin(1.1) |
| The result exceeds the floating point range | an evaluation_error(float_overflow) exception is thrown |