The following example uses Java’s {{Mono|Math}} class to return the cosine of an angle.
The [[XQuery 3.0|#Expanded QNames|Expanded QName]] notation is used to address the
{{Mono|cos()}} method, which can be directly called, as it is a {{Mono|static}} method: