1function C = cot (G)
2%COT cotangent.
3% C = cot (G) is the cotangent of each entry of G.
4% Since cot (0) is nonzero, C is a full matrix.
5%
6% See also GrB/coth, GrB/acot, GrB/acoth.
7
8% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
9% SPDX-License-Identifier: GPL-3.0-or-later
10
11G = G.opaque ;
12if (~gb_isfloat (gbtype (G)))
13    op = 'tan.double' ;
14else
15    op = 'tan' ;
16end
17
18C = GrB (gbapply ('minv', gbfull (gbapply (op, G)))) ;
19
20