(x: Interval | IntervalResult)
| 288 | } |
| 289 | |
| 290 | // Case 2: Check if interval contains a pole at pi/2 + n*pi (the location |
| 291 | // is a refinement hint) |
| 292 | const poleAt = poleSearchApplies(xVal) |
| 293 | ? extremumWithin(xVal, HALF_PI, PI) |
| 294 | : undefined; |
| 295 | // `tan` increases on a branch: it tends to `+∞` at a pole above the |
| 296 | // interval and to `−∞` at a pole below it. |
| 297 | if (poleAt !== undefined) |
| 298 | return poleAnswer(xVal, poleAt, HALF_PI, (e, side) => { |
no test coverage detected