cos(@number) [ISO]

This arithmetic predicate calculates the cosines of the argument.

see also: acos/1 asin/1 atan/1 arithmetic in Prolog cosh/1 is/2 sin/1 tan/1 tanh/1

Examples
X is cos(1.1). succeeds, X is 0.4535961
X is cos(-0.1). succeeds, X is 0.9950042

 

Exceptions
The floating point argument or result exceeds the floating point range an evaluation_error(float_overflow) exception is thrown
The integer argument result exceeds the integer range an evaluation_error(int_overflow) exception is thrown

 

 

info@trinc-prolog.com