Skip to content

Commit 5425802

Browse files
Update main.js
Signed-off-by: Sai Srikar Dumpeti <[email protected]>
1 parent 1f07de8 commit 5425802

File tree

1 file changed

+4
-0
lines changed
  • lib/node_modules/@stdlib/math/base/special/cotd/lib

1 file changed

+4
-0
lines changed

lib/node_modules/@stdlib/math/base/special/cotd/lib/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ function cotd( x ) {
6464
return 0.0;
6565
}
6666

67+
if (isInteger((x / 90) / 2)) {
68+
return Infinity;
69+
}
70+
6771
xRad = deg2rad(x);
6872

6973
return cot(xRad);

0 commit comments

Comments
 (0)